payza
I tried to make it so that the module source code reads easily and is efficient as well. If you have any questions, concerns, comments, please drop a line in the form of an issue on the github page.
How to use
NOTE: default path and host are production path and host
var payza = 'user': 'example@gmail.com' 'password': 'api_password_pcdTEmc4aYH' 'host': 'sandbox.payza.com' //override default host 'path': '/api/api.svc/' //override default path;
Get Balance
This api only has a single optional property: "currency" however if nothing is supplied then the default value of 'USD' will be used. Both examples below are identical.
payza; payza;
Get Transaction Info
var opts = 'transactionNumber': '17EF4-FDCF1-61583'; payza;
Get Transaction History
var opts = 'startDate': '2011/04/11' //format YYYY/MM/DD 'endDate': '2011/04/22' 'email': 'example@gmail.com' //The email contained in the transaction 'transactionNumber': 'BD998-85C6D-6947E' 'amount': 8888 'currency': 'USD' 'transactionType': 2 'transactionState': 2; payza;
Execute Mass Pay
var opts = 'currency': 'USD' //default is USD 'senderEmail': 'example@gmail.com' 'testMode': 0 //0 or 1 'payments': 'receiverEmail': 'receiver.example@gmail.com' 'amount': 100 'note': 'receiver will see this' 'custom': 'receiver will not see this' ; payza;
Send Money
var opts = 'amount': 100 'currency': 'USD' //default is USD 'receiverEmail': 'example.receiver@gmail.com' 'senderEmail': 'example.sender@gmail.com' 'purchaseType': 0 //default is 0 'note': 'receiver will see this' 'testMode': 0; payza;
Refund Transaction
var opts = 'referenceNumber': 'BD998-85C6D-6947E' 'testMode': 0; payza;
Cancel Subscription
var opts = 'referenceNumber': 'BD998-85C6D-6947E' 'note': 'some note here' 'testMode': 0; payza;