Webhooks are a critical component of the payment process, serving as a real-time notification system for transaction outcomes. They provide immediate updates on payment statuses, allowing your application to respond promptly to successful, failed, or expired transactions.

Webhooks ensure that your system stays synchronized with the payment process, enabling you to take appropriate actions based on transaction results.

Setting Up Webhooks

You have two options for configuring your webhook URL:

  1. Per-Transaction Basis: Specify the callback_url parameter when creating a payment intent using either ExpressPay or Checkout.
  1. Global Setting: Configure a default webhook URL in your Fenan Pay dashboard settings.

If you don’t specify a callback_url in your payment intent request, Fenan Pay will use the URL set in your dashboard settings. Ensure this URL is always up-to-date to avoid missing critical notifications.

By leveraging webhooks effectively, you can create a robust, responsive payment system that enhances the overall user experience and maintains data integrity across your application.