Authorize and Capture
A Guide for Authorizing and Capturing Transactions
Use the provided API reference links for detailed endpoint documentation.
Create an Authorize Request
- Request for the Token ID from the Card Library
- Create an Authorize Request
- Pass the “Token ID” in the Source.
- Pass the desired amount (1 SAR, 0.100 KWD, BHD)
- Apply Auto Void after the desired number of hour(s) (This will automatically void the authorize after the set number of hours)
- Pass 3DS as True - To Authenticate with 3DS
- Pass Customer Initiated as True
- Pass Save Card as True - To save the card after a successful card 3DS Authentication and Authorization.
- Pass the Customer ID - Generated by the customer API in the customer object.
- Pass the correct Merchant ID related to each country.
- Pass the Redirect URL to redirect back after the 3DS Authentication
- Pass the Post URL to pass the response after the 3DS Authentication
- Save the following details from the Authorize Response for future transactions.
- Authorize ID
- Authorize Status
- Customer ID
Capture an Authorized Transaction
- Create a Charge Request
- Pass the “Authorize ID” in the Source
- Pass the desired amount (and the same currency of the Authorize) to Charge. Amount can be less than or equal to the originally authorized amount.
- Pass Customer ID
- Pass the correct merchant ID related to each country.
- Post URL is Optional but recommended to push the info to your backend. Note - you will receive an immediate response, since no authentication will be needed for an authorized transaction.
- Save the following details from the Authorize Response for future transactions.
- Charge ID
- Charge Status
Ensure that customer_initiated is not set to false, and threeDSecure is not set to false during the capture of an authorized transaction. Payment agreement ID is not required for capturing an authorized transaction.
Updated 11 months ago