Webhooks
Card payments
2 min
we use webhooks to update you on status and to report transaction changes webhooks report to your system with real time notifications when an event happens the event returns a resource object that contains relevant details about the subject of each event 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 in p2c, a single registration registers the callback url for all webhook events event registration use post /api/webhookregistrations to register to poll for event status event details refer to webhook events for details call description cardauthorized reports when a card authorization attempt is completed and the status of the card when a card was signed up via an iframe cardstatuschanged reports if a card changed status to active or inactive 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 transactionstatuschanged reports the changed status of a transaction accountcreditreceived the cos account of the merchant is credited with the amount mentioned on the payload at the timestamp mentioned on the payload