#RON WAFFLE-checkout-one-time-sub

1 messages · Page 1 of 1 (latest)

worldly saddle
#

Hey! Yes you can

#

You'll need to use mode: 'subscription'

sick wedge
#

And I can just populate line_items, is that correct?

worldly saddle
#

Exactly!

#

Let me know if you have a specific issue

sick wedge
#

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

worldly saddle
sick wedge
#

perfect thank you

worldly saddle
#

Np!

sick wedge
#

does the checkout remember payment methods?

#

Like does it identify people through email

#

or do you have to set it explicitly

worldly saddle
#

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

sick wedge
#

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

worldly saddle