cordova-plugin-amplify-pay
v1.0.0
Published
Cordova plugin for amplify payment gateway
Downloads
5
Maintainers
Readme
Amplify Payment System Ltd cordova plugin
Installation and Configuration
cordova plugin add cordova-plugin-amplify-pay --save
Configuration
AmplifyPay.config = {merchantId: '###############', apiKey: '**********************'};
How To Use
successFn: function(transactionRef)
{
# Use transactionRef to verify transaction on https://api.amplifypay.com/merchant/verify API endpoint.
# For more information visit https://amplifypay.com/developers
}
failFn: function(errorMessage)
{
}
var customerName = 'Adam Bilyamin';
var customerEmail = '[email protected]';
var description = 'DSTV subscription payment';
var amount = 5000;
var referenceId = 'AMP1223344445';
var planId = 50;
AmplifyPay.makePayment(customerName, customerEmail, description, amount, referenceId, planId, successFn, failFn);