Amplify Payment System Ltd Cordova Plugin
Installation
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)
{
//alert(errorMessage);
}
var customerName = 'Adam Bilyamin';
var customerEmail = 'bily@gmail.com';
var description = 'DSTV subscription payment';
var amount = 5000;
var referenceId = 'AMP1223344445';
var planId = 50;
AmplifyPay.makePayment(customerName, customerEmail, description, amount, referenceId, planId, successFn, failFn);