11-05-2014 01:42 PM
I have a question regarding pre-auth/capture.
If I send a transaction with x_type=PRIOR_AUTH_CAPTURE and n specified amount of 0 (x_amount=0.0) will it complete the authorized transaction with the original amount or will the payment be completed with an amount of 0?
Based on the documentation, I would expect the authorisation to be completed with an amount of 0.
Documentation from AIM_guide:
The unique field requirements for a Prior Authorization and Capture are:
* x_trans_id=Transaction ID here
For this transaction type, the amount field (x_amount) is only required in the event that a Prior Authorization and Capture is submitted for an amount that is less than the amount of the original Authorization Only transaction. If no amount is submitted, the payment gateway will initiate settlement for the amount of the original authorized transaction.
11-07-2014 02:52 PM - edited 11-07-2014 02:52 PM
Your first statement is correct. When you run a prior_auth_capture request for 0 dollar, this will process the full original authorized amount. If you want to run a prior_auth_capture that is less than the original authorized amount then you will need put a value in the amount field and not 0.