Skip to Content
Docs
Payment sessions

Payment session events

WEBHOOKpayment_session.*

Pay.com sends these events to your webhook endpoints when a payment session changes. Each one carries the payment session as it was at that moment. To add an endpoint and check signatures, see Webhooks.

Events

payment_session.open
The payment session was created but no action has been taken yet.
payment_session.completed
The payment session was completed and approved. A payment method was attached and a charge or hold was created based on the session parameters.
payment_session.failed
The payment session failed without a successful charge. A failed session may have multiple declined payment attempts.
payment_session.displayed
The payment session was displayed to the customer with all provided details.

Each event

idstring
The event’s id, starting evt_.
resourcestring
Always event.
typestring
One of the events above, such as payment_session.open.
createdstring
When it happened, in ISO 8601 (UTC).
dataobject
The payment session as it was at that moment, with the attributes Retrieve a payment session returns.
Was this page helpful?