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

Notification

How to verify our notifications.

Once the payout is confirmed by the bank, luxtak will send a notification to the merchant notification URL informing you of the result of the transaction. This URL is defined when submitting the payout transaction, by using the notify_url parameter for each payout request. Notification will retry 6 times when your processing failed.

Post

$notify_url which defined when submitting the payout transaction.

Notifcation

Notification Parameters

Parameters

Header

NameTypeDescription
Content-Type*stringapplication/json; chartset=UTF-8
Authorization*stringSHA256($sorted_params + $app_key)

Body

NameTypeDescription
payoutId*stringluxtak transaction id
custom_code*stringmerchant custom_code
status*stringPAID or REJECTED
msgstringsuccess or rejected message
timestamp*stringunix timestamp

Responses

200Merchant process the callback, and response "success"
success

Authorization Check

  • Get callback's body parameters, and sort them ascendingly.

  • Concatenate sorted_params with app_key.

  • Use sha256(sorted_params + app_key) to generate App Authorization.

  • Get luxtak Authorization from callback's Header.

  • Verify if luxtak Authorization matches with App Authorization.

Tips

When sorting parameters, strip the ones with no value.

Notification Events

  • PAID

  • REJECTED

  • REFUNDED

Tips

By now, both SPEI & luxtak Wallet & Pix supported _REFUNDED_notification .

Notification Example

curl --location --request POST $your_notify_url \
--header 'Authorization: $luxtak_authorization' \
--header 'Content-Type: application/json' \
--data-raw '{
    "payoutId": "TS202202071548044sGt3ADbmpGsPB",
    "custom_code": "custom_code_test",
    "status": "PAID",
    "msg": "success",
    "timestamp": 1628564650
}'

Notification Retries

luxtak will send notifications with the following schedule of retries and confirmation awaiting times. You must return an HTTP STATUS 200 (OK) with response data "success" before the corresponding time expires. If not, it will be assumed that you did not receive it correctly and you will be notified again.

It is recommended that you respond to the notification before executing business logic or prior to accessing external resources so as not to exceed the estimated response times.

This communication is exclusively between the servers of luxtak and your server, so there will not be a physical user seeing any type of result.

EventTime after first dispatch
Dispatch--
1st retry10 minutes
2nd retry30 minutes
3rd retry60 minutes
4th retry120 minutes
5th retry360 minutes
6th retry840 minutes

Tips

Our notifications will be sent from these IP addresses, please add them to your whitelist.

Prev
Submit a payout
Next
Account Balance