1. Callbakc Description
Aurpay API
  • Aurpay Crypto Payment Integration
  • API-Key Authentication Method
    • Order
      • Get Payment URL
      • Get Payment Info
      • Get Orders
      • Get Orders Details
      • Get Orders Refund Info
      • Orders Refund
      • Get Transaction
      • Get Support Crypto Currency List
      • Get Support Real Currency List
    • Wallets
      • Get Wallets List
      • Withdraw Balance
      • Get Self Custody Wallets
    • Bitcoin Lightning Network
      • Get BLN Balance
      • Create BLN Order
      • Create BLN Withdraw
    • Get API-Key
      POST
  • Signature Authentication Method
    • Order
      • Get Payment URL
      • Get Payment Info
      • Get Support Real Currency List
      • Get Support Crypto Currency List
      • Get Orders
      • Get Orders Details
      • Get Transaction
      • Get Orders Refund Info
      • Orders Refund
    • Wallets
      • Get Wallets List
      • Withdraw Balance
      • Get Self Custody Wallets
    • Bitcoin Lightning Network
      • Get BLN Balance
      • Create BLN Order
      • Create BLN Withdraw
  • Callbakc Description
    • Callback Authentication Method
  1. Callbakc Description

Callback Authentication Method

In order to provide more secure authentication for callback requests, we recommend using additional authentication methods for security verification.

Callback Authentication Instructions#

Get callback_token and callbakc_secret through the dashboard
To ensure callback security, the platform appends the following parameters to the request header of each request
You can do simple verification directly by verifying that Callback-Token is consistent, More secure authentication is also possible with Signature
ParamDescriptionExample
Callback-TokenCallback Token from Callback Authentication pageEEB0C8EEB1B6C7D9C7D938449C44DAE7DC484C87C14E
DateCurrent timestamp in ISO-8601 format2024-06-17T00:00:00Z
SignatureBase64-encoded signature information (calculated using a hash algorithm).Please refer to the following Signature for the rule of generating.

Signature Specifies the rule for generating#

NameDescriptionExample
DateCurrent timestamp in ISO-8601 format2024-06-17T00:00:00Z
callback_urlThe full callback URL, including the protocol and parametershttps://api.you.com/callback?id=32
Generating the Signature parameter involves these steps:
Construct signature_origin:
signature_origin is formed by concatenating the following parameters using | as the delimiter:{date} | {callback_url}
Example: `2024-06-17T00:00:00Z | https://api.you.com/callback?id=32`
Generate signature_sha:
Calculate signature_sha using HMAC-SHA256 with callbakc_secret:
signature_sha=hmac-sha256(signature_origin, callbakc_secret)
Encode signature_sha:
Encode signature_sha using base64 to obtain the final signature:
`signature=base64(signature_sha)`
This yields the signature parameter.
Previous
Create BLN Withdraw
Built with