Difference between revisions of "Template:Authorization"

From 360Works Product Documentation Wiki
Jump to navigation Jump to search
(Created page with "A sale transaction for credit card contains two parts: an ''authorization'' which verifies and places a hold for the amount, and a ''capture'', which actually transfers the fu...")
 
Line 5: Line 5:
 
<pre>Set Variable [$result Value:
 
<pre>Set Variable [$result Value:
 
CCProcessPayment(
 
CCProcessPayment(
merchantAccount,
+
{{{1|merchantAccount}}},
transactionKey;
+
{{{2|transactionKey}}};
 
chargeAmount;
 
chargeAmount;
 
cardNumber;
 
cardNumber;

Revision as of 17:04, 29 August 2013

A sale transaction for credit card contains two parts: an authorization which verifies and places a hold for the amount, and a capture, which actually transfers the funds.

To run an authorization, pass in an additional parameter authMode=AUTH_ONLY.

Set Variable [$result Value:
CCProcessPayment(
{{{1|merchantAccount}}},
{{{2|transactionKey}}};
chargeAmount;
cardNumber;
expDate;
authMode=AUTH_ONLY)]

After running an authorization, run the appropriate CCProcessAuthorizedPayment. Pass in the previousTransactionId from the transaction ID you received from the process with authMode.