#m0uka
1 messages · Page 1 of 1 (latest)
Hi 👋 I believe so, are you encountering an error when you try to do so?
hi, yes, i receive this error:
{"code":"parameter_missing","doc_url":"https://stripe.com/docs/error-codes/parameter-missing","status":400,"message":"Missing required param: payment_method_types.","param":"payment_method_types","request_id":"req_3mQuH7YhiJPbtj","request_log_url":"https://
dashboard.stripe.com/test/logs/req_3mQuH7YhiJPbtj?t=1687444195","type":"invalid_request_error"}```
payment_method_types is required for setup mode: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types
In payment and subscription mode, you can omit this attribute to manage your payment methods from the Stripe Dashboard. It is required in setup mode.
Also noted in the payment method integration guide:
https://stripe.com/docs/payments/payment-methods/integration-options
Checkout in setup mode requires that you pass payment method types.
hmm okay, not many methods support recurring payments anyway, so guess i'll just define them.
thanks for the help
Trying to create a Checkout session so customers can edit their payment methods for their subscriptions
Have you looked at using the Customer Portal?
https://stripe.com/docs/customer-management#customer-portal-features
we have our own portal for payments, I don't want to confuse customers too much
Sure, but this is designed for updating the payment method on a subscription, if that's what you're trying to do
But, up to you!
You can use Checkout setup mode then offer your own UI for choosing the PM to use for the subscription
yes that's what I was aiming for