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

H5 Authorization

H5 application get user authorization

1. Provide the authorization link to users.

The authorization link is concatenated with Basic URL+notify_url+reference_id+source+sign_key

ParameterExplainationExample value
notify_urlthe url that used to receive notificationhttps://www.luxtak.com
reference_idmerchant user's id. Defined by merchant20220101123
sourcea string which can recognize the merchantluxtak
sign_keya key used for verifying signature. Defined by merchanttest_key

Tips

Don't put # sign in the URL

Test environment

Basic URL

https://sandbox-wallet.luxtak.com/authenticationH5?

Example:

https://sandbox-wallet.luxtak.com/authenticationH5?notify_url=https://www.luxtak.com&reference_id=1234567&source=abc&sign_key=test_key

:::

Live environment

Basic URL

https://wallet.luxtak.com/authenticationH5?

Example:

https://wallet.luxtak.com/authenticationH5?notify_url=https://www.luxtak.com&reference_id=1234567&source=abc&sign_key=test_key

:::

Users will be redirected to this page to authorize.

2. Users authorize and the merchant gets UUID.

After users authorized on the page from Step 1. Users will be redirected to the notification page. The page URL will be concatenated with notify_url+merchant_user_id+luxtak_id+phone_number+sign

ParameterExplainationExample
merchant_user_idthe reference_id is provided in step 1.​
luxtak_iduser's UUID​
phone_numberphone number​
signsignature generated with sign key. sign_key is provided in step 1.​

Signature rule:

let param = 'merchant_user_id=' + reference_id + '&luxtak_id=' + uuid + '&phone_number' + phone_number;
let sign = param + '&key=' + sign_key;
sign = md5(md5(sign));

Example of the URL of notification page

https://www.luxtak.com/?merchant_user_id=1234567&luxtak_id=b5e8b5d94bbafdd7be8d91e784a7413d&phone_number=177****1868&sign=4b7841cf03c6011d2137b99a20f82d61

​ 3. Merchant needs to link merchant's user ID with the UUID of luxtak wallet. Then users can be redirected to the other page as needed.