Passer au contenu
Français - France
  • Il n'y a aucune suggestion car le champ de recherche est vide.

HiPay Enterprise - Direct Post from scratch

Generate the token

PS: Postman is not compatible for send tokenization request.

First of all, you can integrate our SDK without develop from scratch :

https://developer.hipay.com/doc/hipay-enterprise-sdk-js/

 

1. Requirements             

Stage
https://stage-secure2-vault.hipay-tpp.com/rest/v2/token/create
Live
https://secure2-vault.hipay-tpp.com/rest/v2/token/create
Method
POST
Authentication
Authorization Basic base64(":")
Character encoding
UTF-8
HiPay Enterprise credentials
Public

Create credentials with public visibility by going to the HiPay Enterprise back office > Integration > Security settings.

 

2. Request parameters

Parameter
Format
Length
Description
card_number
Numerical
12-19
The card number.The length is from 12 to 19 digits.
card_expiry_month
Numerical
2
The card expiry month.Expressed with two digits (e.g., 01).
card_expiry_year
Numerical
4
The card expiry year.Expressed with four digits (e.g., 2014).
card_holder
Alphanumeric
25
The cardholder name as it appears on thecard (up to 25 chars).
cvc
Numerical
4
The 3- or 4- digit security code (called CVC2,CVV2 or CID depending on the card brand)that appears on the credit card.
multi_use
Numerical
1
Indicates if the token should be generatedeither for a single-use or a multi-use.Possible values: 0 = Generate a single-use token, you can use only one time the token, that's means only for one transaction. 1 = Generate a multi-use token, for one-click and recurring payment. While a single-use token is typicallygenerated for a short time and for processinga single transaction, multi-use tokens aregenerally generated for recurrent payments.

 

3. Response fields

Field name
Description
card_token
The token of the card[Save this value to generate an order]
request_id
The request ID linked to the card token
brand
Brand of the card[Save this value to generate an order]
pan
Pan of the card
card_holder
The cardholder name as it appears on thecard
card_expiry_month
The card expiry month.[Save this value to generate an order]
card_expiry_year
The card expiry year.[Save this value to generate an order]
issuer
Card-issuing bank’s nameDo not rely on this value to remain static over time. Bank names may change over time due to acquisitions and mergers.
country
Bank country code where the card was issued. This two-letter country code complies with ISO 3166-1 (alpha 2).
card_type
Card type (if applicable, e.g.: “DEBIT, CREDIT”)
card_category
Card category (if applicable, e.g.: “PLATINUM”)
domestic_network
Domestic network where the card was issued.

 

Example JSON response

{  "card_token": "string",  "request_id": "string",  "brand": "string",  "pan": "string",  "card_holder": "string",  "card_expiry_month": "string",  "card_expiry_year": "string",  "issuer": "string",  "country": "string",  "card_type": "string",  "card_category": "string",  "domestic_network": "string"}