Tokenization
A Token can represent your tokenized Customer, Payment Instrument or Instrument Identifier information.
Generate token
Contact NeoX to register the service.
Create bill with enabled createToken field.
The bill created with field neo_createToken = true
will return the token (neo_PayToken
) after payment success via IPN. The token can be used for the next payment.
Next payment
Authentication
Reference to Platform Authentication.
Using scope = payment
Pay by token API
URL: https://api.neopay.vn/oapi/v2/payment/payByToken
Method: POST
Request: Content-Type: application/json
Request Parameter
Parameter | Data type | Required | Description |
---|---|---|---|
orderId | String | Y | Order ID |
orderInfo | String | Y | Order description |
merchantTxnId | String | Y | Merchant's transaction ID (unique) |
currency | String | Y | Currency (default VND) |
amount | Number | Y | Bill amount |
payToken | String | Y |
|
Example:
Response Data
Field name | Data type | Description |
---|---|---|
code | Number | |
message | String | Response message |
data | Object |
|
Example:
Payment result
Last result of the request will be sent via IPN.
Last updated