#alex6743_code

1 messages ยท Page 1 of 1 (latest)

vagrant mountainBOT
#

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

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

unborn cedar
#

To confirm, you're creating ui_mode: 'embedded' sessions?

glad aspen
#

Yes

unborn cedar
glad aspen
#

What are PMs?

unborn cedar
#

Then you can just use the onCompletecallback to render whatever you want

unborn cedar
glad aspen
#

We only need users to pay with credit cards Visa, MC, AmEx so I doubt we'll run into this issue

glad aspen
#

One other question: how do I read the ProductData's MetaData when the payment finishes?

#

We need to pass additional information with the purchase and read it perhaps via the webhooks

unborn cedar
#

You'd listen for checkout.session.completed events and retrieve the session to 'expand' the line_items.data.price.product field

glad aspen
#

Thanks, @unborn cedar

unborn cedar
#

No problem, glad I could help!

glad aspen
#

That worked perfectly

#

Is it possible to have the "Save my info for 1-click" unchecked by default?

vagrant mountainBOT
unborn cedar
glad aspen
#

I think that's the feature that allows users to save their CC info to use later

eternal isle
#

This section belongs to Link payment method. Unfortunately, you can't control the specific behavior of the checkbox.

glad aspen
#

Am I correct that for customers to save their CC for later easy checkout, we'd use Link?

eternal isle
#

It depends, there's many ways to do this.
Link payment methods are saved across all Stripe accounts, and you don't have particular control over it. The customer will be able to use the saved Payment Method with any other shop that uses Stripe.

If you want to have more control over saved Payment Methods, but it will work only in your app - take a look at https://docs.stripe.com/payments/existing-customers

glad aspen
#

That's what I was looking for... for it to show a list of previous payment methods and let the user quickly pick one and go

#

Thank you, @unborn cedar and @eternal isle , for your help!