'Authorize.net: Using PRIOR_AUTH_CAPTURE need update the Invoice number
We are using AIM module for our website. In first call we are using AUTH_ONLY. If everything is okay then we are using PRIOR_AUTH_CAPTURE to capture the amount. The Problem here is we need to update the Invoice number in the second call (PRIOR_AUTH_CAPTURE). How can we achieve this ? because "priorAuthCapture" method accepts only transaction id
and amount
as parameters.
Is there any other function is there in Authorize.net AIM to update the Invoice number after the payments successful ?
$transaction->invoice_num = $generatedInvoiceID;
Solution 1:[1]
In Cybersource if you enter a default value of 0 with prior auth capture, it will capture the original amount of the transaction. Change 0 to the actual dollar amount if you want to capture less than the original amount. If you wish to capture more than the original amount you will need to complete a new authorization or new authorization and capture.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Anonymous |