PAYMENT_VERIFICATION
This event is fired before policy creation for products that require payment.
When and what fires this event?
If this event is defined on a product, and it has actions that are enabled:
- Storefront: Fires this event before policy creation when payment is required;
- Fired externally via API on-demand.
Request payload
POST: https://api.{ENV}.dais.com/ioi/v3/event/fire
curl --location --request POST 'https://api.{ENV}.dais.com/ioi/v3/event/fire' \
--header 'Authorization: Basic <yourAuthHere>' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "PAYMENT_VERIFICATION",
"payload": {
"paymentTriggerRequestId": "<triggerRequestId>"
}
}'
{
"type": "PAYMENT_VERIFICATION",
"payload": {
"paymentTriggerRequestId": "fb2f42eb-a4b6-44de-8595-cb6440d3f1fb"
}
}
Event fields:
| Property | Required | Description |
|---|---|---|
type | true | Must be set to PAYMENT_VERIFICATION |
payload | true | Explained below |
Payload fields
| Property | Required | Description |
|---|---|---|
paymentTriggerRequestId | true | UUID for the payment you wish to verify |
Response payload
{
"triggerRequestId": "d18b115d-dbb3-4383-b874-bb1d48fb415d",
"executedActionCount": 0,
"expectedResponseCount": 0,
"metadata": {
"PAYMENT_VERIFICATION": {
"paymentTriggerRequestId": "fb2f42eb-a4b6-44de-8595-cb6440d3f1fb",
"paymentVerified": false,
"paymentProcessor": "STRIPE",
"paymentIdentifier": "pi_3KX0lCCbDuWSbVzI1uzgGaCF",
"amount": 1560000
}
}
}