1.0.0 • Published 10 years ago

techpay v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago
					TechPay Integration

This 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

});

1.0.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago