Vault
How to use Vault to submit a payin in Philippines.
Create Vault
https://gateway-test.luxtak.com/vault/create
This endpoint allows you to create a vault.
Parameters
Header
| Name | Type | Description |
|---|---|---|
| Content-Type* | string | application/json; chartset=UTF-8 |
| Authorization* | string | Basic Base($app_id:$security_key) |
Body
| Name | Type | Description |
|---|---|---|
| app_id* | string | created app's id at dashboard - Max. 32 chars - |
| timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
| version* | string | Fixed value: 2.0 |
| type* | string | Fixed value: Card |
| card.region | string | RUS |
| card.method | string | CreditCard |
| card.uid | string | |
| card.token | string | Check here |
| card.notify_url | string |
Responses
| 200 | submit successfully |
{
"code": "10000",
"msg": "Success",
"auth_url": "https://demo.auth.url/",
"token": "wa_***",
"type": ""Card",
"timestamp": "yyyy-MM-dd HH:mm:ss",
"checkout_url": "https://demo.checkout.url"
}
Example
curl --location --request POST 'https://gateway-test.luxtak.com/trade/pay' \
--header 'Authorization: Basic MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "162************38",,
"timestamp": "2022-01-01 03:54:01",
"version": "2.0",
"type": "Card",
"Card": {
"region": "PHL",
"method": "Wallet",
"uid": "123",
"token": "",
"notify_url": "https://demo.return.url"
}
}'
Void Vault
https://gateway-test.luxtak.com/vault/void
This endpoint allows you to void a vault.
Parameters
Header
| Name | Type | Description |
|---|---|---|
| Content-Type* | string | application/json; chartset=UTF-8 |
| Authorization* | string | Basic Base($app_id:$security_key) |
Body
| Name | Type | Description |
|---|---|---|
| app_id* | string | created app's id at dashboard - Max. 32 chars - |
| timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
| version* | string | Fixed value: 2.0 |
| type* | string | Fixed value: Card |
| vault_token* | string |
Responses
| 200 | submit successfully |
{
"code": "10000",
"msg": "Success",
"token": "wa_***",
"type": ""Card",
"timestamp": "yyyy-MM-dd HH:mm:ss"
}
Tips
Note: 162********38 is luxtak's test app id for sandbox, and MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== is authorization token associated with the test app id.
Warning
Please use your own app_id and generate your own authorization token when testing.
