I am in the process of creating a CIB payment gateway, and I need to trigger a function upon successful payment.
To achieve this, I have included the following attribute in the checkout link:
data-complete="completeCallback"
Additionally, I defined a function like so:
function completeCallback() {
console.log('Payment Completed');
}
However, I encountered an error stating:
The callback specified by 'data-complete' cannot be used without 'session.id'
I am unsure where to obtain the session.id from. Could someone please provide guidance?
For more information, refer to the documentation at:
Further details on working with sessions can be found here:
If anyone can assist, it would be greatly appreciated.