Webhooks

Card payments

7min

P2C uses webhooks to update you on the status of your cards and to report transaction changes. Webhooks report to your system with real-time notifications when an event happens. In P2C, a single registration registers the callback URL for all webhook events.

Every time an event occurs, P2C reports the webhook data to your endpoint in JSON format. This eliminates the need to poll the API to discover changes. The full event details are included and sent to your system.

Typically, P2C aggregates event objects every 30-120 seconds.

Register for webhook event reports

Use POST /api/WebhookRegistrations to register to poll for event status.

Webhook reports

Call

Description

CardAuthorized

Reports:

  1. When a card authorization attempt is completed and the status of the card.
  2. When a card was signed up via an iFrame.

CardStatusChanged

Reports if a card changed status to active or inactive

Transaction

Reports any transactions

TransactionStatusChanged

Reports the changed status of a transaction

TransactionCompleted

Reports the completion of a transaction request. This webhook is sent only 1 time. If a transaction has changed after the initial execution, the TransactionStatusChanged webhook will be sent.

Webhook Responses

CardAuthorized

Sample response


TransactionCompleted

Sample Response


CardStatusChanged

Sample response


TransactionStatusChanged

Sample response


Transaction

Sample response




🤔
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.