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

VoidTransaction Method

Voids a transaction in the current batch.

Syntax

globalchargecontrol.VoidTransaction PNRef

Remarks

A Void removes transactions from an open batch prior to settlement, to correct same-day transaction mistakes. A transaction can only be voided if it exists in the current open batch. To do so, call VoidTransaction with the PNRef parameter set to the PNRef of the original transaction. This only works for transactions that are still in the current open batch. If the batch that contained the target transaction has already been settled, you must use the Refund or Credit methods instead.

Note that since AuthOnly transactions are not added to the current batch, they cannot be voided. Examples follow.


control.CardNumber = "4444333322221111"
control.CardExpMonth = 1
control.CardExpYear = 2015
control.TransactionAmount = "1.00"
control.Sale()

refNumToVoid = control.ResponsePNRef

...  more sale transactions ...

'All that's needed for a void:
control.VoidTransaction(refNumToVoid)

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