Template:Voiding Transactions

From 360Works Product Documentation Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre>Set Variable [$result; Value: CCVoidPayment ( merchantAccountName ; txKey ; previousTransactionID)]</pre> Voids a previously processed payment. The parameters are simil...")
 
Line 16: Line 16:
 
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.
 
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.
  
See also: CCLastPaymentTransactionIDReturns: 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).
+
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).

Revision as of 19:31, 3 June 2013

Set Variable [$result; Value:

CCVoidPayment (
merchantAccountName ;
txKey ;
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.

Parameters:

merchantAccountName - your payment gateway merchant account name
txKey - 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.

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).

Personal tools
Namespaces

Variants
Actions
Plug-in Products
Other Products
Navigation
Toolbox