E-Payment Integrator 2020 C++ Edition

Questions / Feedback?

VoidTransaction Method

Voids a previously authorized transaction.

Syntax

ANSI (Cross Platform)
int VoidTransaction(const char* lpszTransactionId);

Unicode (Windows)
INT VoidTransaction(LPCWSTR lpszTransactionId);
- (void)voidTransaction:(NSString*)transactionId;
#define MID_ECHECK_VOIDTRANSACTION 11

INPAY_EXTERNAL int INPAY_CALL InPay_ECheck_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method voids a transaction that has been previously authorized, but which has not yet gone to settlement, or been "captured". The TransactionId parameter indicates to the Gateway which transaction is to be voided, and should contain the ResponseTransactionId from the original transaction.

Please see the gateway information in the table of contents to determine if your gateway supports Void transactions.

To cancel a transaction which has already been captured, use the Credit method.

The LinkPoint gateway requires you send the ResponseInvoiceNumber rather than the ResponseTransactionId. For the PSIGateXML Gateway, send the ResponseTransactionId as normal.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2021 /n software inc. - All rights reserved.
E-Payment Integrator 2020 C++ Edition - Version 20.0 [Build 7941]