This service returns a payment ID :
{
"payment_id": "0wyQBvivK1shkoBLctlvM5zQnKGxcgvOIBKVgtoJFoo="
}
Payment validation
When the payment is detected in the blockchain linked to the cryptocurrency used, a payment notification is sent to the URL you specified in the payment request (callback_url parameter) :
{
"payment_id": "0wyQBvivK1shkoBLctlvM5zQnKGxcgvOIBKVgtoJFoo=",
"payment_reference": 3560,
"tx_hash": "aba3c7c17634e2e9708fb2c38adab78d119885d7719e46ace762032465a64fbd",
"unit": "BTC"
"address": "1EfARsRNXC3DG1ZF1PesbyVNLE1jEHcKDi",
"amount": 0.06538985,
"amount_left": 0,
"status": "WAITING"
...
}
List of data sent in JSON format :
Field | Description | |
---|---|---|
payment_id | Payment ID. Use this field to verify that it matches the one you received when creating the payment request. | |
payment_reference | Your payment reference (ex: Order ID) | |
tx_hash | The transaction ID on the blockchain | |
amount_left | Amount remaining to be paid | |
status | Payment status: PENDING, WAITING or PAID PENDING: Payment has been made but the customer has not paid the full amount. The remaining amount is available in the amount_left field. WAITING: Payment has been made in full. The payment will be validated as soon as the number of confirmations entered in the payment request is reached. PAID: Payment is confirmed. |
Please note that the other fields provided when creating the payment request are also injected into the data sent such as unit, address, conversion_rate, ...
Exchange rate
You can subscribe to this service, to receive the exchange rate of crypto currencies in your currency every 5 minutes. All world currencies are supported.
To use this service, you must subscribe to the package: Pro Plus.
Service URL :
POST https://api.explorer.cash/rates
List of supported parameters :
Parameter | Mandatory | Description |
---|---|---|
callback_url | URL of your application that will be called when updating exchange rates | |
currency | Your currency (ex: USD, EUR, ...). |
This service returns the exchange rate of crypto currencies in your currency :
{
"BTC": 9315.68,
"ETH": 270.42,
"XRP": 0.207253,
"USDT": 0.850194,
"BCH": 241.9,
"ADA": 0.11763,
"BSV": 179.12
....
"BTT": 0.00032235,
"ALEND": 0.294445
}
Libraries
Find below our useful libraries to implement our Blockchain payment API on your own projects :