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 Incompleteintent.incompleteThis event occurs when a payment intent is created, but the payment process is not successfully completed.
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.

Subscription Events

Event NameEvent TypeDescription
Subscription Createdsubscription.createdThis event is triggered when a new subscription intent is successfully created.
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 Inactivesubscription.inactiveThis event occurs when a subscription is paused or otherwise becomes inactive.
Subscription Completedsubscription.completedThis event indicates that the subscription has reached the end of its term or has been successfully completed.
Subscription Cancelledsubscription.canceledThis event is triggered when a subscription is canceled 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.