Method | API Name | URI |
POST | Capture | /opa/Capture |
Field Name | Data Type | Size | M/O | Description & Remarks |
MerchantNo | String | 16 | M | Merchant number assigned by the system |
ReqDate | String | 14 | M | Client request date when calling the API. Format: yyyyMMddHHmmss. A time 60 minutes earlier or later than host system time will be rejected. |
CustId | String | 50 | M | Merchant’s Customer id. |
OrderId | String | 50 | M | Order Id |
Amount | String | 10 | M | Total amount to be captured. Up to 2 decimals and no thousand separators. Example: “10”, “10.5”, “10.50”. |
TrxnDesc | String | 150 | O | Transaction description. |
ReturnUrl | String | 300 | M | Realtime web browser or frontend direction endpoint for hosted page. If needed a direct response, left this field empty. |
Signature
| String | – | M | Calculated hash by concatenating all the values of the fields and follow the list order. |
Legend:
M: Mandatory field
C: Conditional field
O: Optional field, value can be empty but parameter must exist
Example
<HTML> <BODY> <FORM method=”post” action=”[Base URL]/opa/Capture”> <INPUT type=”hidden ” name=”MerchantNo” value=”1000000000000001″> <INPUT type=”hidden” name=”ReqDate” value=”20210101153020″> <INPUT type=”hidden” name=”CustId” value=”1993023323″> <INPUT type=”hidden” name=”OrderId” value=”OrderId123456789”> <INPUT type=”hidden” name=”Amount” value=”500”> <INPUT type=”hidden” name=”TrxnDesc” value=”Charge service fee.”> <INPUT type=”hidden” name=”ReturnUrl” value=”https://www.example.com/xxx”> <INPUT type=”hidden” name=”Signature” value=”[Calculated hash]” <INPUT type=”submit” value=”Submit” name=”Submit”> </FORM> </BODY> </HTML> |