#loterak
1 messages · Page 1 of 1 (latest)
Hey there, you can use payment_method_collection=if_required to enable this:
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.
Specify whether Checkout should collect a payment method. When set to if_required, Checkout will not collect a payment method when the total due for the session is 0. This may occur if the Checkout Session includes a free trial or a discount.
Can only be set in subscription mode.
Awesome, thank you!
NP!