APIs


Integrations

Capture

Capture API


This API is responsible to capture an existing authorization transaction.

This table describes the request parameters for Capture API.
Variable NameDescriptionRequiredExpected Value
usernameTCB Pay Gateway UsernameYTCB Pay Gateway Username
api_keyTCB Pay Gateway API KeyYTCB Pay Gateway API Key
transaction_idUnique transaction ID generated by the GatewayY-
amountAmount to be charged, <= original transaction amountY133.24
email_receiptSend transaction details to the specified email during authorizationNY 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>

Response


The response of the API Call is a JSON array. For Error, two elements are returned, code and description. For Successful transactions, three elements are returned, code, description, and transaction_id. The response code for a successful API call is always 00.

Sample Response
Copied
{"response":{"code":"01","description":" Merchant Information is Missing"}}
We use cookies to offer you a better experience, and analyze site traffic.
By continuing to use this website, you consent to the use of cookies in accordance with our Cookies Policy.