This plugin helps you integrate the Trustly Checkout into your Cordova project.
Add the plugin to your project
cordova plugin add https://github.com/trustly/cordova-plugin-trustly-checkout
Pass your Checkout URL to the showTrustlyCheckout
function.
trustly
.showTrustlyCheckout("<YOUR-TRUSTLY-CHECKOUT-URL>")
.then((successUrl) => {
//Checkout was successful
//The Checkout view/activity will close automatically after this.
})
.catch((err) => {
//Called on Checkout error and abort, check err.type to see which.
//The Checkout view/activity will close automatically after this.
});