Skip to Content
Docs
Payment attempts

Payment attempt events

WEBHOOKpayment_attempt.*

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

Events

payment_attempt.succeeded
An individual attempt within a payment session succeeded.
payment_attempt.failed
An individual attempt within a payment session failed.

Each event

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