Payment sessions
Payment session events
WEBHOOK
payment_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.openThe payment session was created but no action has been taken yet.
payment_session.completedThe 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.failedThe payment session failed without a successful charge. A failed session may have multiple declined payment attempts.
payment_session.displayedThe payment session was displayed to the customer with all provided details.
Each event
idstringThe event’s id, starting
evt_.resourcestringAlways
event.typestringOne of the events above, such as
payment_session.open.createdstringWhen it happened, in ISO 8601 (UTC).
dataobjectThe payment session as it was at that moment, with the attributes Retrieve a payment session returns.
Was this page helpful?