Skip to main content
Quick reference for SDK client session parameters when charging returning customers. The SDK behavior is identical for all scenarios—only the client session payload differs.
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

Do not include plan.id for recovery—PayNext uses the existing plan from the subscription.
Recover Subscriptions for status handling and workflows

Mount the SDK

Once you have the session id, mount the checkout:
Behavior:
  • 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
SDK Getting Started for full configuration options

Payment Method Modes

Outcomes