#szy_best-practices

1 messages ¡ Page 1 of 1 (latest)

fiery marshBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1230113614724333649

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

heavy frigateBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

normal sapphire
#

You'd set default_payment_method on the Subscription object using the new pm_xxx object

uncut ermine
#

where should i read the 'pm_xxx' object from? checkout sesssion object in webhooks?

normal sapphire
#

Can you explain more about how you're collecting new payment info form customers?

#

I assume mode: 'setup' session

uncut ermine
#

no, 'mode: 'subscription''

#

i make a checkout for being charged in the future

#

user is required to fill address and payment element

normal sapphire
#

I think you need to share a cs_xxx ID with me. I'm confused by what you're describing as Checkout will set the default payment information on the subscription automatically

uncut ermine
#

okay, but cant access the cs_xxx ID atm, will ask again once im able to get it,

normal sapphire
#

If you're using mode: 'subscription' then Checkout will set default_payment_method on the created subscription and that is used for all future payments

uncut ermine
#

So by checkout i mean the form with payment and address stripe elements.

normal sapphire
#

Yeah, you're using custom Checkout if I recall

#

Which uses the Checkout Sessions API