Learn how to create and manage recurring HSA/FSA payments through Flex.
Resource | Definition |
---|---|
Product | What your business offers |
Price | How much and how often to charge for products. |
Customer | The customer that a subscription belongs to |
Subscription | The product details associated with the plan that your customer subscribes to. |
Invoice | A statement of amounts owed by a customer. Every time a customer needs to be charged for their subscription, an invoice get generated |
Payment Intent | The payment that corresponds to an invoice |
incomplete
. Once the payment has been approved the subscription will transition to active
.
Along with a subscription being created, an invoice for the first payment will be created and a payment intent that
corresponds to that specific invoice.
Upon successful payment, the customer will be redirected to the redirect URL specified as part of the checkout session request.
past_due
state.
From here, you can email the client to request an alternative payment method.
incomplete
.open
.active
paid
invoice.paid
, checkout_session.completed
, customer.subscription.updated
webhook event getstrialing
if you offer a trial period. When the trial is over, the
subscription moves to active
and the subscribed customer starts to be charged.