#Ivan Lipatov
1 messages · Page 1 of 1 (latest)
Are you using Checkout today?
Yep. This is my session creation function. Maybe it'll help
@proven maple Can you help me?
Did you try passing payment_method_collection: 'if_required'? https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But there is no such field
You likely need to update stripe dependency to get the new types. That's a new(ish) field: https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1020---2022-08-11
You can ts-ignore that line and the API call will work
np