E-Payment Integrator V6 - Online Help
E-Payment Integrator V6
Questions / Feedback?

Credit Method

Credits a previous ACH transaction.

Syntax

echeck.credit(transactionId, creditAmount, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This method credits a previous ACH authorization. The TransactionId parameter indicates to the Gateway which transaction is to be voided, and should contain the ResponseTransactionId from the original transaction. The CreditAmount parameter is the value to be credited back to the customer, and can be all or part of the original TransactionAmount. The bank account indicated by BankRoutingNumber and BankAccountNumber must be identical to the original authorized transaction.

The following gateways support credit transactions:

Authorize.Net
ECX
Heartland
MPCS
Netbanx
Netbilling
PayTrace"Refund" transaction is performed.
Planet Payment
RTWare
TransNationalBankcard"Refund" transaction is performed.
TrustCommerce
USAePay
ACH FederalWhen a TransactionId is specified, a "Void" transaction will be performed. When "" (empty string) is specified for TransactionId, a "Credit" transaction will be performed.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 6.0.6240.0