Errors

Could not create checkout session

Stripe/session checkout create failed — generic 500 or Stripe helper throw.

Could not create checkout session

Creating a checkout session failed — used by Stripe balance top-up helper and as a 500 fallback on checkout session / role-plan / traffic-package routes when session creation throws.

Why this happens

Stripe (or session) API error, misconfigured secret key, invalid price/amount, or unexpected exception after gateway selection. Distinct from gateway “not configured” strings returned earlier as 503.

Diagnose and fix

1. Admin: verify Stripe keys and mode (test/live); check Stripe Dashboard logs.

2. Confirm the product/price amounts are valid.

3. Member: retry; try another payment method if offered.

4. Read app logs for the underlying Stripe/error message.

Related