Crypto Callbacks

Check out the IPN examples for cryptocurrency operations

Crypto Replenishment

Notifications for incoming crypto transactions will be simillar for both Permanent and Rotating addresses.

Notifications will be sent anytime when incoming transactions change their status:

Pending – incoming transaction is already in mempool/has at least 1 confirmation.

Done – incoming transaction is confirmed and added to your merchant's balance

Verified - transation passed AML verification

Failed - incoming transaction was not credited to your merchant's balance.

{
  "id": "8c12e071-cd00-439d-90c0-74a8c2f96da2",
  "ticker": "LTT",
  "blockchain": "BINANCE_SMART_CHAIN",
  "merchantId": "b2a46898-7e6d-4c13-8a31-47154c43ee8b",
  "hash": "0x2bdb432c0ccc0edc2b7427e9b5d65a712d2b95cf4d8abd68460fe5beb0181515",
  "from": [
    "0xba85c10f2292aae78754daca380da8557853ac09"
  ],
  "to": "0x2d4221783d2c575ca52ae6c3fb6420a891d1b4fe",
  "amount": "1",
  "fee": "0.01",
  "time": 1674221507732,
  "status": "Pending",
  "meta": "your-user-id-23",
  "kind": "Replenish",
  "internal": false
}

Crypto Withdrawal

Withdrawal notifications will be sent when transaction is in one of three statuses:

  • Pending – transaction is in the mempool, transaction hash was assigned.

  • Done – withdrawal was included to the block, has at least 1 confirmation.

  • 😡 Failed - transaction has failed, amount was returned to the merchant's balance.

{
  "id": "e432c6a9-8f9e-4a8b-ad6e-2128cab29013",
  "ticker": "LTT",
  "blockchain": "BINANCE_SMART_CHAIN",
  "merchantId": "b2a46898-7e6d-4c13-8a31-47154c43ee8b",
  "hash": "0x2bdb432c0cccb015376fe6c1f58b8a7723cbf4d8abd68460fe5beb0181515",
  "from": [
    "0xba123123123123123"
  ],
  "to": "0x2d4222342352345632456324564fe",
  "amount": "10",
  "fee": "0.1",
  "time": 1674221507732,
  "status": "Pending",
  "meta": "your-user-id-23",
  "kind": "Withdraw",
  "internal": false
}

Crypto Invoice

Webhooks will be sent on transitions to following statuses:

  • Pending – client entered his email and went to the final payment page.

  • Done – invoice was paid

  • Expired – invoice expired. Expiration time for invoice can be calculated by adding 72 hours to created date

{
    "id": "eb929d63-5f05-4d9f-9d3e-854384009ef1",
    "ticker": "ETH",
    "blockchain": "ETHEREUM",
    "amount": "0.5"
    "merchantId": "asdasd-asdasd-asdasd-asdad", 
    "paidAmount": "0.6",
    "description": "Order Payment #123123123",  
    "status": "PENDING", 
    "time": 1666091014270, 
    "meta": "i-want-to-know-about-that",
    "kind": "CryptoInvoice"
}

Last updated