Skip to main content
Hosted Pages is available as a Beta version. Please contact your Customer Success Manager if you would like to access it.

Introduction

Webhooks are the recommended approach for monitoring the status of hosted payments. They provide real-time HTTP notifications when a payment completes successfully or fails, enabling you to reliably update your internal systems and customer journeys. Benefits of using webhooks:
  • Immediate status updates - Receive notifications as soon as the payment reaches a terminal state
  • Reduced API calls - No need to poll the GET endpoint repeatedly, resulting in cost savings for both parties
  • Better user experience - Provide faster feedback to your customers
While you can monitor payment status by polling the GET endpoint, webhooks provide a more efficient and scalable solution.

Webhook Registration

Before receiving webhook events, you must register a webhook for your application and subscribe to the relevant Hosted PIS webhook event types. Please follow the Webhook Registration Guide to:
  • Register your webhook URL
  • Configure authentication and security
  • Subscribe to the Hosted PIS event types listed below

Supported Event Types

To be notified when a hosted payment reaches a terminal state, subscribe to the following events:

Success Event Example

The following example shows a webhook payload delivered when a hosted payment completes successfully:

Success Event Fields

Failure Event Example

The following example shows a webhook payload delivered when a hosted payment fails:

Failure Event Fields

Delivery

Yapily attempts to send webhooks immediately after the hosted payment reaches a terminal state (COMPLETED or FAILED). Delivery guarantees:
  • Yapily guarantees that a payment will reach either a COMPLETED or FAILED status, and therefore a webhook will be delivered, unless there’s an unexpected exception
  • The exact timing depends on how quickly the institution processes the payment and updates the payment status
  • Include the tracingId when contacting support to help identify your specific webhook delivery
Unexpected exceptions that may prevent webhook delivery include:
  • The institution doesn’t update the status of a payment as expected
  • The webhook fails to deliver to your endpoint after retrying
For more information on webhook reliability, timeout handling, and retry logic, see the Webhooks Introduction.

Hosted Pages Resources

Webhook Resources

Implementation Resources