techpay
v1.0.0
Published
Provides integration tools to our gateway
Downloads
13
Readme
TechPay IntegrationThis package provides a simple node integration with our gateway.
METHODS
TechPay.ProcessPayment :
- Parameters :
- Card Number
- Card Expiration (MM/yy)
- Card CVV
- Card Holder Name
- Installments
- Ammount (0.00)
- Description
- Merchant ID
- all parameters are strings.
Responses :
PAYMENTSUCESSFUL = 0 Payment successfully completed
QUIT = 10 Operation canceled by the user
INSTALLMENTS = 20 Number of installments of this transaction exceeds the maximum number of installments defined by the merchant.
INVALID_MERCHANT = 30 Invalid merchant Token
REJECTED = 40 The operation was denied
PAYMENT_ERROR = 50 There was an error on the payment process.
DENIED = 60 Payment denied.
ERROR = 70 There was an error on the server or process.
TIMEOUT = 80 Network timeout
CONNECTION = 90 Internet connection unavailable.
EVENTS
result :
- fired when the transaction is over.
error :
- fired when an error occurs
USAGE EXAMPLE :
var tt = require('TechPay).Integration;
tt.ProcessPayment("4444111122223333","02/15","123","John Doe","2","20.00","API Test","/97/9GRYcvwszASDF"); tt.on('result',function(data){
console.log("Result:",e);
//do something with the result}); tt.on('error',function(e){
console.log("Error:",e);
//treat the error});
