Skip to Content
Docs
Setup sessions

Setup session events

WEBHOOKsetup_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.open
The setup session was created but no action has been taken yet.
setup_session.completed
The setup session was completed and a payment method was successfully saved.
setup_session.failed
The setup session failed without a successful payment method attachment.

Each event

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