CreditCard
How to use CreditCard to submit a payin in Russia.
Post
https://gateway-test.luxtak.com/trade/pay
Payin by CreditCard
This endpoint allows you to submit a payin by CreditCard in Russia.
Parameters
Header
| Name | Type | Description |
|---|---|---|
| Content-Type* | string | application/json; chartset=UTF-8 |
| Authorization* | string | Basic Base($app_id:$security_key) |
Body
| Name | Type | Remark |
|---|---|---|
| app_id* | string | created app's id at dashboard - Max. 32 chars - |
| method* | string | Fixed value: creditcard |
| timestamp* | string | yyyy-MM-dd HH:mm:ss - Max. 19 chars - |
| out_trade_no* | string | ID given by the merchant in their system - Max. 64 chars - |
| notify_url* | string | Where luxtak will send notification to |
| subject* | string | payment reason or item title - Max. 128 chars - |
| order_amount* | number | order amount - 1~ RUB - |
| order_currency* | string | Order currency - Fixed value: RUB - |
| content* | string | payment reason detail or item detail.This will be shown on the bank bill. - Max. 255 chars - |
| buyer_id* | string | merchant user's id |
| token* | string | Get from card/token api |
| vault_token | string | Check here |
Responses
| 200 | submit successfully |
3DS applied
{
"code": "10000",
"msg": "Success",
"prepay_id": "V1M****hiYz0=-03241194",
"trade_no": "2024072***89",
"out_trade_no": "out_tr****4400",
"pay_url": "https://widget-demo.bank131.ru/demo-3-dsecure/?return_url=", //Redirect customer to pay_url to complete
3DS.
"trade_status": "PROCESSING"
}
:::
3DS not applied
{
"code": "10000",
"msg": "Success",
"prepay_id": "V1M****hiYz0=-03241194",
"trade_no": "2024072***89",
"out_trade_no": "out_tr****4400",
"trade_status": "PROCESSING"
}
| 400 | duplicate out_trade_no |
{
"code": "40002",
"msg": "Business Failed",
"sub_code": "duplicate-out_trade_no",
"sub_msg": "out_trade_no is duplicate",
}
Example
curl --location --request POST 'https://gateway.luxtak.com/trade/pay' \
--header 'Authorization: Basic
MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNm
UzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
* "app_id": "162************38",
* "method": "creditcard",
* "out_trade_no": "202201010354002",
* "order_currency": "RUB",
* "order_amount": "12.01",
* "subject": "item name",
* "content": "item description",
* "timestamp": "2022-01-01 03:54:01",
* "notify_url": "http://merchant/callback/success",
* "buyer_id": "buyer_0101_0001",
* "token":"psc****d1f4"
}'
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.
