cordova-sumup-plugin
Cordova plugin for native acces to the sumup paiement system
This plugin permit interconnection beetween native sumUp SDK and hybrid mobile app (cordova/phonegap).
Compatibility :
Pull requests are welcome to integrate IOS !
Installation
$ cordova plugin add https://github.com/Oupsla/cordova-sumup-plugin.git --variable SUMUP_API_KEY=YOUR_AFFILIATION_KEY
You can your affiliation key here : https://me.sumup.com/developers
You have to add your cordova package in the 'Application identifiers'
JS CODE
plugins.sumup.pay(
function(res) {
/*
res : {
code // result code from sumup, more info here : https://github.com/sumup/sumup-android-sdk#1-response-fields
message // message from sumup
txcode // transaction code from sumup
}
*/
},
function(error) {
}, amount, currency (ex : 'EUR'), customerEmail, customerPhone);