项目作者: Oupsla

项目描述 :
Cordova plugin for native access to the sumup paiement system
高级语言: Java
项目地址: git://github.com/Oupsla/cordova-sumup-plugin.git
创建时间: 2017-08-16T15:04:32Z
项目社区:https://github.com/Oupsla/cordova-sumup-plugin

开源协议:

下载


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

  1. $ 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

  1.  
  2. plugins.sumup.pay(
  3. function(res) {
  4. /*
  5. res : {
  6. code // result code from sumup, more info here : https://github.com/sumup/sumup-android-sdk#1-response-fields
  7. message // message from sumup
  8. txcode // transaction code from sumup
  9. }
  10. */
  11. },
  12. function(error) {
  13.  
  14. }, amount, currency (ex : 'EUR'), customerEmail, customerPhone);
  15.