Issuer token
The issuer token object
Use this route to get the issuer token after creating a charge using a transaction token with the payment type online. The charge status needs to be awaiting before issuer_token is populated.
You can also use it to fetch bank account details for bank transfer charges.
| Fields | |
| payment_type | string See payment methods. One of online, bank_transfer. |
| issuer_token | string For payment type: onlineThe token provided by the payment provider for execution by the client. |
| payload | object For payment type: onlineContains an object that includes the necessary data to be sent in the body of POST requests. |
| call_method | string For payment_type: onlineThe execution method by the client. Is one of http_get, http_post, sdk, web, app. – sdk refers to usage directly in a SDK provided by the payment provider.– web refers to usage directly in a special browser environment with specific API extensions.– app refers to usage in a native app environment in a SDK provided by the payment provider.– http_get or http_post, the issuer_token can be directly executed in a new browser window or in an iframe with the correct corresponding HTTP method. |
| account_id | string For payment_type: bank_transferBank account ID. |
| branch_code | string For payment_type: bank_transferBank branch code. |
| branch_name | string For payment_type: bank_transferBank branch name. |
| account_holder_name | string For payment_type: bank_transferBank account holder name. |
| account_number | string For payment_type: bank_transferBank account number. |
Request
GET https://api.univapay.com/stores/{storeId}/charges/{id}/issuer_token
Headers:
Content-Type: application/jsonAuthorization: Bearer {jwt}
Response
Code: 200
Headers:
Content-Type: application/json
Body (online):
{
"issuer_token": "http://test.com/action",
"call_method": "http_post",
"payload": {
"test_parameter": "test_value"
}
"payment_type": "online"
}
Response data for the given example could be used to create an HTML form like:
<FORM METHOD="POST" ACTION="http://test.com/action">
<INPUT TYPE="HIDDEN" NAME="test_parameter" VALUE="test_value">
</FORM>
Body (bank transfer):
{
"account_id": "test account id",
"branch_code": "123",
"branch_name": "test branch name",
"account_holder_name": "test holder name",
"account_number": "1234567",
"payment_type": "bank_transfer"
}