XMembers Docs
Integrations

Stripe

Set up the Stripe integration for payments

About Stripe

Stripe is one of the largest payment processors in the world, accepted in over 40 countries. The Stripe integration allows you to automate enrollments based on recurring or one-time payments.

Setting up the integration

1. Create the integration in XMembers

  1. Go to Integrations → New Integration
  2. Select Stripe as the platform
  3. Select the linked course
  4. Copy the generated webhook URL

2. Configure the webhook in Stripe

  1. Go to the Stripe Dashboard
  2. Navigate to Developers → Webhooks
  3. Click Add endpoint
  4. Paste the URL copied from XMembers
  5. Select the events you want to listen to:
    • checkout.session.completed
    • checkout.session.async_payment_succeeded
    • invoice.paid
    • charge.refunded
    • customer.subscription.deleted
    • invoice.payment_failed

3. Test the integration

Stripe allows you to send test webhooks. Use this feature to verify that the integration is working before going live.

Processed events

EventAction in XMembers
checkout.session.completedCreates the member and enrollment when a one-time payment is paid or free
checkout.session.async_payment_succeededCreates the member and enrollment when a delayed payment (such as boleto) is confirmed
invoice.paidCreates the member and the subscription enrollment, valid until the end of the paid period
charge.refundedCancels the enrollment on a full refund
customer.subscription.deletedCancels the enrollment
invoice.payment_failedLogs the failure

On this page