Cordova Custom Payment Gateway Integration

CodeEshop
1 min readApr 2, 2022

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.

--

--

CodeEshop
CodeEshop

Written by CodeEshop

CodeEshop is Add-on for your need and helps enterprises to grow easily with a large range of ready to use and highly customisable eCommerce products.

No responses yet