Set Variable [$result; Value: CCVoidPayment ( merchantAccount ; transactionKey ; previousTransactionID)]
Voids a previously processed payment. The parameters are similar to the CCProcessPayment function, except dollarAmount is replaced with the addition of the previousTransactionID parameter. The previousTransactionID should be the transaction ID of the transaction you wish to void. This value is returned by the CCProcessPayment function. Alternately, you can use the CCLastPaymentTransactionID function to get the transactionID of the last processed payment.
merchantAccount - your payment gateway merchant account name
transactionKey - your merchant account password OR transaction key.
previousTransactionID - the transactionId of a previously processed transaction.
Note that CCVoidPayment will only work on orders that have not settled yet, which means that it will generally only work on payments made that same day. To void settled orders, use CCRefund instead.
Returns: the transactionID from the payment gateway service if the order is successful, or "ERROR" if there was a problem
See also: CCLastPaymentTransactionID: the transactionID from the payment gateway service if the order is successful, or "ERROR" if there was a problem (use CCLastError for more detailed information about the nature of the error).