olevett / cordova-plugin-adyen

Cordova Adyen In-App Quick Integration Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cordova Adyen Plugin

Minimal plugin providing access to the Adyen SDK. Only the 'quick integration' is supported. Only supported on iOS currently.

Using

Install the plugin

$ cordova plugin add https://github.com/seajas/cordova-plugin-adyen.git

AdyenPlugin is exposed with a single function, present(scheme, function(token) { .. }) : Promise. scheme should contain your app's custom URL. This is needed if you use payments which redirect to other apps or websites. function(token) : Promise should pass the token from the SDK to your backend and return the payload inside of a Promise.

Usage example

AdyenPlugin.present('yourapp://', token => $http.get('/your-backend/setup', { "token": token, ... }))
  .then(payload => $http.get('/your-backend/verify', { "payload": payload }))
  .catch(err => /* handle error */);

About

Cordova Adyen In-App Quick Integration Plugin


Languages

Language:Swift 79.9%Language:JavaScript 20.1%