Return to Integrations page
Credit Card API
Sandbox endpoint URL:
https://gateway2-stg.tcbpay.com/apis/{method}Production endpoint URL:
https://portal.tcbpay.com/apis/{method}
This table describes the request parameters for Capture API.
Variable Name | Description | Required | Expected Value |
---|---|---|---|
username | TCB Pay Gateway Username | Y | TCB Pay Gateway Username |
api_key | TCB Pay Gateway API Key | Y | TCB Pay Gateway API Key |
transaction_id | Unique transaction ID generated by the Gateway | Y | - |
amount | Amount to be charged, <= original transaction amount | Y | 133.24 |
email_receipt | Send transaction details to the specified email during authorization | N | Y or N (default value N) Y- Send email N- Not send |
Example
Copied
<form name="" action="https://portal.tcbpay.com/apis/capture.php" method="post"> <input type="text" name="username" value=" tcbpayusername"/> <input type="text" name="api_key" value=" tcbpayapikey"/> <input type="text" name="transaction_id" value=""/> <input type="text" name="amount" value="14.5"/> <input type="checkbox" name="email_receipt" value="Y"/> <br/> <input type="submit" value="submit"/> </form>