Charges
Charge events
WEBHOOK
charge.*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.succeededThe charge is approved and funds are captured.
charge.failedThe payment method declined the request and the charge has failed.
charge.refundedA refund for the charge was created (full or partial).
charge.requires_confirmationThe charge was authenticated and needs confirmation via the API to execute.
charge.pendingThe charge was created.
charge.acceptedA charge was created on an external platform and was accepted by Pay.com.
charge.updatedThe charge was updated.
charge.clearing_abandonedClearing was abandoned: the charge won’t be settled, and it won’t appear in settlement reports.
charge.requires_partial_approval_actionA server-to-server partial approval was started. The charge is waiting for the merchant to confirm or cancel the partial amount.
Each event
idstringThe event’s id, starting
evt_.resourcestringAlways
event.typestringOne of the events above, such as
charge.succeeded.createdstringWhen it happened, in ISO 8601 (UTC).
dataobjectThe charge as it was at that moment, with the attributes Retrieve a charge returns.
Was this page helpful?