Skip to main content

ready_to_confirm

ready_to_confirm

You receive this webhook when Smart Glocal is ready to perform an operation. You need to check the operation parameters and either confirm the operation by sending a session/confirm request or cancel the operation by sending a session/cancel request to Smart Glocal.

The maximum waiting time for a confirmation is 240 minutes. If no confirmation is received within this time, the operation will automatically be terminated with the canceled status.

info

For your convenience, you can use automatic payment session confirmation: in this case, you do not get a ready_to_confirm webhook and do not have to confirm the operation. To set up the automatic payment session confirmation, apply to your Account Manager.

Parameters

NameMandatoryTypeDescription
type+stringWebhook type: ready_to_confirm
session+objectPayment session

Example

curl -X POST \
https://partner.com \
-H 'content-type: application/json' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"type": "ready_to_confirm",
"session": {
"id": "ps_3230",
"status": "in_progress",
"created_at": "2024-05-27T02:03:00.000000Z",
"updated_at": "2024-05-27T02:03:00.000000Z",
"next_action": "confirm",
"payments": [{
"id": "po_1313",
"status": "pending",
"created_at": "2024-05-27T02:03:00.000000Z",
"customer": {
"reference": "user123",
"contacts": [{
"email": "user@gmail.com"
}]
},
"payment_method": {
"type": "card",
"card": {
"last4": "4242",
"brand": "visa"
}
},
"amount_details": {
"amount": 10000,
"currency": "usd"
},
"metadata": "good"
}]
}
}'