Setup sessions
Setup session events
WEBHOOK
setup_session.*Pay.com sends these events to your webhook endpoints when a setup session changes. Each one carries the setup session as it was at that moment. To add an endpoint and check signatures, see Webhooks.
Events
setup_session.openThe setup session was created but no action has been taken yet.
setup_session.completedThe setup session was completed and a payment method was successfully saved.
setup_session.failedThe setup session failed without a successful payment method attachment.
Each event
idstringThe event’s id, starting
evt_.resourcestringAlways
event.typestringOne of the events above, such as
setup_session.open.createdstringWhen it happened, in ISO 8601 (UTC).
dataobjectThe setup session as it was at that moment, with the attributes Retrieve a setup session returns.
Was this page helpful?