Choose Your Approach
Change With Immediate Payment
Charge the customer now for the new plan. Use when upgrades should take effect immediately.1
Create a client session
Include the customer, subscription, and new plan:
cURL
2
Mount the SDK
Display checkout with the customer’s saved payment method:
- Success: Plan updates immediately, billing cycle resets to today
- Failure: Subscription stays on old plan; customer can retry with a different card
Change Without a Charge
When the prorated amount is below the minimum or you don’t want to charge now, change the plan with the subscription endpoint. Setchange_mode to immediate to reset the billing cycle to today.
cURL
Schedule Plan Change
Change the plan now and keep the existing billing date. Setchange_mode to next_billing_date.
cURL
change_mode controls only when the billing cycle starts. With next_billing_date (the default), the existing billing date stays the same. With immediate, the next billing date resets to today plus the new plan’s period.