For business context and when to use each approach, see Charge Returning Customers.
Use Cases
One-Time Payment
Charge an existing customer for a one-time purchase (add-on, credits, standalone item).Create Client Session
The plan must have
type: one_off. Do not include subscription for one-time payments.Change Plan
Upgrade or downgrade a subscription with immediate payment.Create Client Session
Proration Modes
→ Change Subscription Plan for proration calculations and examples
Recover Past Due
Collect payment for failed renewals to reactivate a subscription.Create Client Session
Mount the SDK
Once you have the sessionid, mount the checkout:
- SDK displays the customer’s saved payment method
- Customer can switch to a new card if needed
- On failure, customer retries instantly—no new session required