#RON WAFFLE-checkout-one-time-sub
1 messages · Page 1 of 1 (latest)
And I can just populate line_items, is that correct?
Thank you. I'm just working with it now. Is it possible to do a trial with the subscription?
Or is that set on the product side
Normally I do subscription::create with trial
Yep, that's possible: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
perfect thank you
Np!
does the checkout remember payment methods?
Like does it identify people through email
or do you have to set it explicitly
Well in mode: 'subscription' it'll create a Customer object if you're not passing the customer parameter:
If blank for Checkout Sessions in payment or subscription mode, Checkout will create a new Customer object based on information provided during the payment flow.
And by proxy the card will be saved to that Customer to facilitate the recurring payments
Could you checkout with an existing payment method? i.e I have a customer with payment methods and I send them to checkout
will they see any UI prompt to checkout with an existing payment method
It depends: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#handling-existing-customers