xPay triggers various webhook events to keep you informed about the status of payment intents and subscription activities. Below is a list of the events you may encounter and their descriptions.

Payment Intent Events

Event NameEvent TypeDescription
Intent Createdintent.createdThis event is triggered when a new payment intent is successfully created.
Intent Checkout Openedintent.checkout_openedThis event is triggered when the checkout page for a payment intent is opened by the customer.
Intent Successintent.successThis event indicates that the payment intent has been successfully processed and the payment is complete.
Intent Failedintent.failedThis event is triggered when the payment process for a given intent fails due to an error or insufficient funds.
Intent Refundedintent.refundedThis event is triggered when a payment intent is successfully refunded.
Intent Disputedintent.disputedThis event is triggered when a dispute or chargeback is raised against a processed payment.
Intent Dispute Wonintent.dispute_wonThis event is triggered when a previously disputed payment is resolved in favor of the merchant.

Subscription Events

Event NameEvent TypeDescription
Subscription Createdsubscription.createdThis event is triggered when a new subscription intent is successfully created.
Subscription Checkout Openedsubscription.checkout_openedThis event is triggered when the checkout page for a subscription is opened by the customer.
Subscription Trialingsubscription.trialingThis event is triggered when a subscription enters the trial phase before becoming active.
Subscription Activesubscription.activeThis event indicates that the subscription is now active and recurring charges are scheduled.
Subscription Cycle Chargedsubscription.cycle_chargedThis event is triggered each time a recurring charge is successfully processed for an active subscription.
Subscription Unpaidsubscription.unpaidThis event occurs when a subscription enters an unpaid state, typically due to a failed payment attempt.
Subscription Endedsubscription.endedThis event indicates that the subscription has either been completed naturally or cancelled and is now considered ended.
Subscription Cancelledsubscription.cancelledThis event is triggered when a subscription is cancelled by the merchant.

These events are designed to help you track and respond to changes in payment and subscription statuses, ensuring a smooth integration with xPay’s systems. Make sure to handle each event appropriately within your webhook implementation.

For more details on how to handle webhooks and event security, refer to the Webhooks Introduction.