Create/Update Token Details
Create/Update a token using the OnlinePay Tokenisation Service.
If a token exists for the card already, it is updated with the information in the request. Otherwise, a new token is created for the given card.
Request body
The token scope under which this token was created.
The cardholder data encrypted using the OnlinePay provided public key. This can be obtained using either Verifone.JS solution or OnlinePay Checkout in capture mode.
The data to encrypt is a JSON with possible tags being cardNumber, sequenceNumber, cardholderName, startMonth, startYear, expiryMonth, expiryYear, cvv. This should be a single JSON line and should not contain any spaces. Read <a target="_blank" style="color:blue;" href="https://verifone.cloud/docs/online-payments/secure-card-capture-key">Secure card capture key</a> for details.
Additionally, a tag called captureTime must be presenting indicating the time the card was captured in UTC in format RFC 3339, section 5.6. eg. 2019-08-24T14:15:22Z. Encrypted card is valid for only 15 minutes.
Represents a Card type or brand. It should correspond to a consistent name, the list of standard names is as follows:
| Value | Description |
|---|---|
| AMEX | American Express |
| JCB | Japan Credit Bureau |
| MASTERCARD | MasterCard |
| VISA | Visa |
Token type
The type of Reuse Token. This indicates if the reuse token is an internal OnlinePay type or an external Third-Party type.
When this Token will expire.
Example request
{
"token_scope": "0e48425a-f1bc-431a-b7d8-f866de8ba276",
"encrypted_card": "U3dhZ2dlciByb2Nrcw=="
}Response
Token result
The identifier used to represent the Cardholder data.
A token that cannot be reversed to Card Holder data. This is included in a Payment for auditing and tracking purposes.
The Bank Identification Number (also called IIN - Issuer Identification Number) of this card.
A 2 digit value as shown on card. ISO8583 - DE 14
A 4 digit value as shown on card.
The last 4 digits of the card number.
The Card holder name as it appears on the card.
The last date token was updated.
The last date token was created.
When this Token will expire.
The type of Reuse Token. This indicates if the reuse token is an internal OnlinePay type or an external Third-Party type.
The token scope under which this token was created.
The status of the Token.
Three-letter ISO 4217 alphabetical currency code. Supported values are: AUD
The ISO 3166-1 alpha-3 country code.<blockquote><strong>Note:</strong> The country code for Great Britain is <code>GB</code> and not <code>UK</code> as is used in that country's top-level domain names.</blockquote>.
Example response
{
"bin": "492912",
"expiry_month": 12,
"expiry_year": 2021,
"last_four": "3127",
"card_holder_name": "MR J HOLDER",
"bin_details": {
"bin": "492912",
"brand": "VISA",
"issuer_name": "HSBC",
"last_four": "3127",
"type": "CREDIT",
"variant": "NEW_WORLD"
},
"token_status": "ACTIVE"
}