Skip to content

Cordova plugin for native access to the sumup paiement system

Notifications You must be signed in to change notification settings

Oupsla/cordova-sumup-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :

  • ANDROID

Pull requests are welcome to integrate IOS !

Installation

$ cordova plugin add cordova-plugin-sumup --variable SUMUP_API_KEY=--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);

About

Cordova plugin for native access to the sumup paiement system

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published