#hufeng
1 messages · Page 1 of 1 (latest)
Which integration type do you use for subscriptions? Checkout Session or Subscription API?
Checkout Session
You may set payment_method_collection to if_required: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
Payment method will only be collected if the amount is non-zero. If the amount is zero like trial, payment method won't be collected.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.