#mpv-Checkout-select-price

1 messages · Page 1 of 1 (latest)

formal matrix
#

Hi there

#

Moving your below comment into this thread: ```My subscription product has 3 prices (monthly, quarterly, or yearly) so I'd like to allow the user to pick which they want.

If I exclude line items (prices) when creating the session I get this error:
Stripe::InvalidRequestError - Subscriptions require at least one recurring price or plan to be passed to line_items.

If I include multiple line items (for multiple prices) I get this error:
Stripe::InvalidRequestError - Checkout does not support multiple prices with different billing intervals

The Billing Portal page allows the user to switch the selected price but Checkout Session doesn't?```

#

It's not possible for the customer to select the Price they will subscribe to after they have been redirected. We just launched our Pricing Tables which handles all of this for you in your UI: https://stripe.com/docs/payments/checkout/pricing-table. I'd recommend checking that out first.

#

If that doesn't work for you then you would need to build this yourself by having the customer indicate up front which Price they want to Subscribe to and then you set that Price on Session creation

final idol
#

Very helpful. Thank you @formal matrix!