If you are using a payment method having Custom Payment Gateway Integration and no SDK where you can redirect from checkout page to Payment Gateway ( e.g. Sodexo ) then you are good to go further in the blog. We will be making a universal Payment Gateway Integration with the below mentioned cordova-codeeshop-cespay Cordova Plugin.
Main Parameters needed to pass is url, callbackErrorURL, callbackSuccessURL
url: is the redirection URL
callbackSuccessURL: Used to check the Success URL and then redirect to the checkout page with success response in event paymentmessage
.
callbackErrorURL: Used to check the Error URL/Payment Failed URL and then redirect to the checkout page with error response in event paymentmessage
.
Event Listener
paymentmessage: this event will be fired when success or failure of payment occured.
Github Repo
If you have any issues or queries feel free to ask us at codeeshop2211@gmail.com