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_typestring
See payment methods.
One of online, bank_transfer.
issuer_tokenstring
For payment type: online
The token provided by the payment provider for execution by the client.
payloadobject
For payment type: online
Contains an object that includes the necessary data to be sent in the body of POST requests.
call_methodstring
For payment_type: online
The 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_idstring
For payment_type: bank_transfer
Bank account ID.
branch_codestring
For payment_type: bank_transfer
Bank branch code.
branch_namestring
For payment_type: bank_transfer
Bank branch name.
account_holder_namestring
For payment_type: bank_transfer
Bank account holder name.
account_numberstring
For payment_type: bank_transfer
Bank account number.

Request

GET https://api.univapay.com/stores/{storeId}/charges/{id}/issuer_token

Headers:

Content-Type: application/json
Authorization: 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"
}