checkout- Gets checkout information (either a Stripe Checkout URL or purchase confirmation data)attach- Enables the product and charges a saved payment method
Checkout
Callcheckout when a customer wants to purchase a product. If no payment method is on file, a Stripe Checkout URL is returned. Otherwise, preview data (prices, proration info) is returned for the customer to confirm.
Attach
Ifcheckout returned preview data (no URL), call attach after the customer confirms to charge their saved payment method and enable the product.
3DS and Payment Failures
When callingattach, the payment may require additional action. Autumn will return:
| Code | Description |
|---|---|
3ds_required | Payment requires 3D Secure authentication |
payment_failed | Payment was declined (e.g., insufficient funds) |
Past Due Subscriptions
If a recurring payment fails (e.g., card expired), the subscription status becomespast_due. To resolve this:
- Direct the customer to the billing portal to update their payment method
- Once updated, Stripe will automatically retry the failed invoice
If you’d like to block feature access when a subscription is
past_due, please contact us. We can enable a configuration flag to do this for you.
