LuxtakLuxtak
  • Introduction
  • Payin API
    • Environments
    • All-In-One Checkout
      • Checkout Page (General)
      • Checkout Page (E-com)
    • Direct integration
      • Brazil
        • Pix
      • Mexico
        • Cash
        • CoDi
        • SPEI
      • Colombia
        • Wallet
        • PSE
      • Chile
        • Bank Transfer
        • Wallet
      • Peru
        • Bank Transfer
        • Cash
      • Ecuador
        • Bank Transfer
        • Cash
      • Russia
        • CreditCard
        • SBP
        • SberPay
        • TPay
        • Vault
      • Global
        • Crypto
        • Binance
    • Notification
      • Security
    • Recurring Payment
      • Support Target and Currency
    • Tokenization
    • Payin Detail
    • Refund
    • Data
      • Payment Method
      • Data for test (Sandbox)
      • Payin Status
      • Icon of methods
      • Country Code
    • API Code
  • Payout API
    • Environments
    • Security
    • Submit a payout
      • Brazil
        • Pix
      • Russia
        • SBP
      • Global
        • Crypto
    • Notification
    • Account Balance
    • Payout Status
    • Payout Bank List
    • Payout List
    • Payout Detail
    • Payment Method
    • Data for test
    • API Code

SBP

How to use SBP to submit a payin in Russia.

Post

https://gateway-test.luxtak.com/trade/pay

Payin by SBP

This endpoint allows you to submit a payin by SBP in Russia.

Parameters

Header

NameTypeDescription
Content-Type*stringapplication/json; chartset=UTF-8
Authorization*stringBasic Base($app_id:$security_key)

Body

NameTypeRemark
app_id*stringcreated app's id at dashboard
- Max. 32 chars -
method*stringFixed value: SBP
timestamp*stringyyyy-MM-dd HH:mm:ss
- Max. 19 chars -
out_trade_no*stringID given by the merchant in their system
- Max. 64 chars -
notify_url*stringWhere luxtak will send notification to
subject*stringpayment reason or item title
- Max. 128 chars -
order_amount*numberorder amount
- 1~1000000 RUB -
order_currency*stringOrder currency
- Fixed value: RUB -
content*stringpayment reason detail or item detail.This will be shown on the bank bill.
- Max. 255 chars -
buyer_id*stringmerchant user's id

Responses

200submit successfully
{
 "code": "10000",
 "msg": "Success",
 "prepay_id": "V1M****hiYz0=-03241194",
 "trade_no": "2024072***89",
 "out_trade_no": "out_tr****4400",
 "pay_url": "https://qr.nspk.ru/AD20006GC3***rc=67F3",
 "trade_status": "PROCESSING",
 "qr_code": "https://qr.nspk.ru/AD2000**rc=67F3"
}
400duplicate 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": "SBP",
 * "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"
}'

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.

Prev
CreditCard
Next
SberPay