ready_to_capture
ready_to_capture
Smart Glocal sends you this webhook after placing a hold on money in case of delayed capture payments. To debit the money, send a session/capture
request. To cancel the payment, send a session/cancel
request.
Parameters
Name | Mandatory | Type | Description |
---|---|---|---|
type | + | string | Webhook type: ready_to_capture |
session | + | object | Payment session |
Example
curl -X POST \
https://partner.com \
-H 'content-type: application/json' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"type": "ready_to_capture",
"session": {
"id": "ps_3230",
"status": "in_progress",
"created_at": "2024-05-27T02:03:00.000000Z",
"updated_at": "2024-05-27T02:03:00.000000Z",
"acquiring_payments": [{
"id": "pm_1313",
"status": "pending",
"created_at": "2024-05-27T02:03:00.000000Z",
"customer": {
"reference": "user123",
"contacts": [{
"email": "user@gmail.com"
}]
},
"payment_details": {
"type": "card",
"card": {
"last4": "4242",
"brand": "visa"
}
},
"amount_details": {
"amount": 10000,
"currency": "usd"
},
"metadata": "good"
}]
}
}'