Skip to Content
Docs
Charges

Charge events

WEBHOOKcharge.*

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

Events

charge.succeeded
The charge is approved and funds are captured.
charge.failed
The payment method declined the request and the charge has failed.
charge.refunded
A refund for the charge was created (full or partial).
charge.requires_confirmation
The charge was authenticated and needs confirmation via the API to execute.
charge.pending
The charge was created.
charge.accepted
A charge was created on an external platform and was accepted by Pay.com.
charge.updated
The charge was updated.
charge.clearing_abandoned
Clearing was abandoned: the charge won’t be settled, and it won’t appear in settlement reports.
charge.requires_partial_approval_action
A server-to-server partial approval was started. The charge is waiting for the merchant to confirm or cancel the partial amount.

Each event

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