Cordova Plugin for Satispay SDK
This plugin is usefull to implement the Satispay payment flow in a cordova based app
More info about Satispay here
Android
For Android this plugin use the official Satispay SDK
Available methods:
- isSatispayAvailable: checks if the Satispay App is available
- payChargeId: checks if the Satispay App is available and then open it for the payment
- satispayPreAuthorizedPayment: checks if the Satispay App is available and then open it for the payment
iOS
For iOS this plugin implements only the Satispay App check because, as the documentation says, the app has to open an url_scheme
Available methods:
- isSatispayAvailable: checks if the Satispay App is available
Examples
Some examples of implementation in Angular
{ const useSandbox = true; cordovapluginsSatispaySDK; }
This is a possible implementation of the payment flow for each platform. As fallback the app can open the payment url as web page
{ const useSandbox = true; const chargeId = 'ABC12345'; // From server const paymentUrl = ''; // From server if thisplatform cordovapluginsSatispaySDK; else if thisplatform cordovapluginsSatispaySDK; else this; }