Channel payment callbacks
Handling callbacks correctly is crucial to ensure your integration’s business logic works as expected. It is highly recommended to validate payment statuses and callbacks before acting on it inside your system.
Refer to this section to get more information on what callbacks are and how to validate them before acting on it inside your system.
Callback event
Description
created
A customer has just broadcast their transaction on the network
completed
The transaction has just been confirmed on the network. The channel payment status has been changed to completed
on_hold
The received cryptocurrency transaction evaluated as High-Risk, therefore the Channel Payment transaction has been put on hold. Our Transaction Monitoring team will review this transaction to make a decision on whether we will be able to process this payment and add the funds to your merchant account balance or we will have to send the funds back to a sender. Refer to the Risks section to get more details on what High-Risk transactions are and why we take it very seriously
refunded
The funds have been returned back to the sender
cancelled
The transaction was on the network but hasn't been confirmed within 14 days. The channel payment status has been changed to cancelled
created
completed
on_hold
refunded
cancelled
1
{
2
"type": "ChannelPayment",
3
"event": "created",
4
"data": {
5
"id": "284d4b79-fea6-46ce-bc2f-0f9cbed6367e",
6
"txid": "09723bf75253f3d2bf2f150fd8b5da5bc3026b95f1fe50b1f5f76f43d67a2e30",
7
"paid_amount": "0.02",
8
"paid_currency": "BTC",
9
"received_amount": "0.0",
10
"received_currency": "EUR",
11
"fee": "0.0",
12
"fee_currency": "EUR",
13
"status": "pending",
14
"channel_id": "50eb5775-f77e-4c64-870b-dc93624b5967",
15
"custom_id": "631044494",
16
"risk": {
17
"score": 0.0,
18
"level": "low",
19
"resource_name": "Bitstamp",
20
"resource_category": "Exchange"
21
},
22
"hosted_page_url": "https://business-hosted.cryptopay.me/channels/50eb5775-f77e-4c64-870b-dc93624b5967",
23
"created_at": "2019-05-02T11:00:01+00:00"
24
}
25
}
Copied!
1
{
2
"type": "ChannelPayment",
3
"event": "completed",
4
"data": {
5
"id": "284d4b79-fea6-46ce-bc2f-0f9cbed6367e",
6
"txid": "09723bf75253f3d2bf2f150fd8b5da5bc3026b95f1fe50b1f5f76f43d67a2e30",
7
"paid_amount": "0.02",
8
"paid_currency": "BTC",
9
"received_amount": "97.26",
10
"received_currency": "EUR",
11
"fee": "0.99",
12
"fee_currency": "EUR",
13
"exchange": {
14
"pair": "BTCEUR",
15
"rate": "4912.8021"
16
},
17
"status": "completed",
18
"channel_id": "50eb5775-f77e-4c64-870b-dc93624b5967",
19
"custom_id": "631044494",
20
"risk": {
21
"score": 0.0,
22
"level": "low",
23
"resource_name": "Bitstamp",
24
"resource_category": "Exchange"
25
},
26
"hosted_page_url": "https://business-hosted.cryptopay.me/channels/50eb5775-f77e-4c64-870b-dc93624b5967",
27
"created_at": "2019-05-02T11:00:01+00:00"
28
}
29
}
Copied!
1
{
2
"type": "ChannelPayment",
3
"event": "on_hold",
4
"data": {
5
"id": "284d4b79-fea6-46ce-bc2f-0f9cbed6367e",
6
"txid": "09723bf75253f3d2bf2f150fd8b5da5bc3026b95f1fe50b1f5f76f43d67a2e30",
7
"paid_amount": "0.02",
8
"paid_currency": "BTC",
9
"received_amount": "0.0",
10
"received_currency": "EUR",
11
"fee": "0.0",
12
"fee_currency": "EUR",
13
"status": "on_hold",
14
"status_context": "illicit_resource",
15
"channel_id": "50eb5775-f77e-4c64-870b-dc93624b5967",
16
"custom_id": "631044494",
17
"risk": {
18
"score": 8.45,
19
"level": "high",
20
"resource_name": "Silk Road",
21
"resource_category": "Dark Market - Centralised"
22
},
23
"hosted_page_url": "https://business-hosted.cryptopay.me/channels/50eb5775-f77e-4c64-870b-dc93624b5967",
24
"created_at": "2019-05-02T11:00:01+00:00"
25
}
26
}
Copied!
1
{
2
"type": "ChannelPayment",
3
"event": "refunded",
4
"data": {
5
"id": "284d4b79-fea6-46ce-bc2f-0f9cbed6367e",
6
"txid": "09723bf75253f3d2bf2f150fd8b5da5bc3026b95f1fe50b1f5f76f43d67a2e30",
7
"paid_amount": "0.02",
8
"paid_currency": "BTC",
9
"received_amount": "0.0",
10
"received_currency": "EUR",
11
"fee": "0.0",
12
"fee_currency": "EUR",
13
"status": "refunded",
14
"channel_id": "50eb5775-f77e-4c64-870b-dc93624b5967",
15
"custom_id": "631044494",
16
"risk": {
17
"score": 8.45,
18
"level": "high",
19
"resource_name": "Silk Road",
20
"resource_category": "Dark Market - Centralised"
21
},
22
"hosted_page_url": "https://business-hosted.cryptopay.me/channels/50eb5775-f77e-4c64-870b-dc93624b5967",
23
"created_at": "2019-05-02T11:00:01+00:00"
24
}
25
}
Copied!
1
{
2
"type": "ChannelPayment",
3
"event": "cancelled",
4
"data": {
5
"id": "284d4b79-fea6-46ce-bc2f-0f9cbed6367e",
6
"txid": "09723bf75253f3d2bf2f150fd8b5da5bc3026b95f1fe50b1f5f76f43d67a2e30",
7
"paid_amount": "0.02",
8
"paid_currency": "BTC",
9
"received_amount": "0.0",
10
"received_currency": "EUR",
11
"fee": "0.0",
12
"fee_currency": "EUR",
13
"status": "cancelled",
14
"channel_id": "50eb5775-f77e-4c64-870b-dc93624b5967",
15
"custom_id": "631044494",
16
"risk": {
17
"score": 0.0,
18
"level": "low",
19
"resource_name": "Bitstamp",
20
"resource_category": "Exchange"
21
},
22
"hosted_page_url": "https://business-hosted.cryptopay.me/channels/50eb5775-f77e-4c64-870b-dc93624b5967",
23
"created_at": "2019-05-02T11:00:01+00:00"
24
}
25
}
Copied!
Last modified 1yr ago
Copy link