#geekcorner_best-practices

1 messages ยท Page 1 of 1 (latest)

rancid berryBOT
#

๐Ÿ‘‹ 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/1302922587726417981

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

unkempt coyote
#

hi there!

#

yes that should be possible. what's your question exactly?

little stag
#

Which path would you recommend basically?

unkempt coyote
#

I don't understand the question, sorry.

#

can you clarify?

little stag
#

Basically, which how would you do it basically, how would I update my intent when the payment method changes

unkempt coyote
#

can you be a lot more precise in your question? at what point exactly in your flow you want tu update the PaymentIntent? and what exactly do you want to update on the PaymentIntent?

little stag
#

whenever the user changes its payment method

unkempt coyote
#

I don't understand the question. can you explain with multiple sentence the exact flow you are having issues with? something like:

  • the user is on my website, and I created a Subscription
  • then the user click on this button
  • at that point I want to change the default payment method of the user
  • but, for this to work, I need to do X
  • how can I do X?
little stag
#

sure let me think, i'm a bit tired today, sorry ๐Ÿ˜…

unkempt coyote
#

no worries. but the more details you share, the esaier it will be for me to help.

little stag
#

basically i'm unsure about how i should update my checkout items (custom checkout is basically Checkout API with Elements) whenever the users changes its payment method so it shows the proper informations ("includes free trial") in the confirm page

unkempt coyote
#

wait, you are using Custom Checout? That's something that is in beta, so we don't know much about it on Discord. you should reach out to support directly, and make it clear you are using this integration: https://support.stripe.com/contact

little stag
#

yeah i know it's in beta but i'm not asking about the beta part, more about the checkout api part

#

okay found how I should ask my question: is there a way to update the line items in a checkout session or do i have to create a new one?

unkempt coyote