#kevin-logan_api

1 messages ยท Page 1 of 1 (latest)

vernal zealotBOT
#

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

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

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.

random pike
#

Hello!

#

Happy to dive deeper.

#

Right now, the only way to setup my checkout experience where I can see all my payment methods is to use stripe elements.

#

But ideally I would like to use Stripe hosted checkot

#

The stripe mcp is telling me that it's just not possible.

#

But that hosted checkout will save your most recent checkout payment method.

#

But it won't display my payment methods that are generated outside of the checkout flow.

outer egret
#

There are a few requirements to prefill the saved Payment methods on the Checkout page (and we only support prefilling cards). Bank Accounts aren't supported (unless you use link)

See: https://docs.stripe.com/payments/existing-customers?platform=web&ui=stripe-hosted#prefill-payment-fields

If the payment method is missing billing_details or allow_redisplay config then it won't show

Can you share an example Checkout Session along with the payment method ID of the payment method that you expected to be prefilled

outer egret
#

NP! And just to clarify the ask, you're trying to show saved payment methods correct?

random pike
#

Yeah. In my head, payment methods in general are saved payment methods.

outer egret
#

It does. I see

#

Yeah. In my head, payment methods in general are saved payment methods.
Umm not sure I understand.

random pike
#

In your message, I wasn't if you were emphasizing that there was a different between saved payment methods and just payment methods.

#

In my head, there are just payment methods that are attached to the customerid

#

and I want those to show.

outer egret
#

There is.

Saved payment methods are the payment methods that customer has already provided and have saved it on Stripe.

Just payment methods being, you just want to show the payment methods that you've enabled under your payment method settings

#

In my head, there are just payment methods that are attached to the customerid
Gotcha. So that's prefilling existing payment method flow..

random pike
#

yup

#

let me show you my list of options

#

I have all of these saved to my customer.

#

that is attached to that checkout.

#

I also have this bank account.

#

I would like to see this in the hosted checkout experience.

#

Let me see there billing address

outer egret
#

So that link one is getting prefilled

#

Can we try with a new customer with a test email that doesn't have a link account?

random pike
#

We can.

#

working on it now

#

I would probably need to turn off link as a payment method

#

I can try adding new payment methods. But this is an empty customer.

#

Am I able to do this through the dashboard?
If the payment method is missing billing_details or allow_redisplay config then it won't show

vernal zealotBOT
outer egret
#

You may be able to do it via the dashboard, yes

random pike
#

but I want to be able to see multiple cards

#

This does great at showing 1 card

outer egret
#

Ah, it won't show multiple cards. That's not how Checkout works.
It will only show the most recently saved card that meets the requirements in payment mode

#

in subscription mode, it'll show the default card

random pike
#

Okay. That's what I was trying to figure out.

so, it also won't show multiple bank accounts?

It's design to show just the last used payment method?

outer egret
#

Correct. We don't prefill bank accounts, just cards as far as I know;

random pike
#

Got it. So, the only way to accomplish an experience where the user can pick amongst all their payment methods like that is to just pull from the stripe api and display it on the interface?

native trout
#

Hi ๐Ÿ‘‹ I'm jumping in as my teammate needs to step away.

random pike
#

Thinking that stripe elements checkout is the way to go to pull off that kind of an experience.

#

Since it sounds like hosted checkout isn't designed to do that.

native trout
#

If you're using hosted Checkout Sessions, yes that is correct. Yup, you beat me to it, I was going to say the Payment Element may be a better fit here.

random pike
#

Got it.

Let me summarize this real quick...

#

For a B2B checkout experience where the user has the ability to choose from a list of payment methods, you would have to use the payment element checkout approach because the hosted checkout experience is designed just to show the latest payment method.

#

Also, is it possible to attach payment methods to a connect account?

#

Curious on the simplest way to share payment methods across your org.

native trout
native trout
random pike
#

What's the current version?

native trout
#

Both v1 and v2 are currently valid integration paths.

random pike
#

ahhh

random pike
#

Makes sense

native trout
random pike
#

Let me send you a quick screenshot

#

This is from a sandbox I've been playing with.

#

I essentially pulled the cards and bank account information via the api and display it.

#

Then the user can click add new payment method

#

wait a second

#

I had someone send this to me.

#

Looks like you can do this? in the hosted checkout.

native trout
#

For cards

#

I'm not sure if it extends to the other Payment Methods

#

Do you have any details from the person who sent you that?

random pike
#

Looks like they kept hitting save my payment information for future purchases

#

He said...

you can show up to 10 payment methods; you just have to add them trhough a checkout flow. Or checkout (mode: "setup") flow

native trout
random pike
#

sorry

#

Got that message out of the blue and I was confused. The conversation I had with the other admin made me think that you could only see your most recent payment method.

#

But, now I know.

#

hmm

native trout
#

From the guide I'm referencing:

You can use Checkout to save cards and other payment methods to charge them off-session, **but Checkout only prefills saved cards. **

random pike
#

is it possible to save a payment method in the customer portal and then have it show up in the hosted checkout experience?

native trout
#

As far as I'm aware, if it's a card, but you may need to mess with the allow_redisplay value yourself on the created Payment Method. I don't recall what that is set to by the Customer Portal by default.

random pike
#

Are you able to tweak that via the dashbaord?

#

or only the api?

native trout
#

I'm not sure, my teammates and I specialize in helping developers use our API; we just aren't as familiar with the dashboard side of these flows.

random pike
#

got it. no worries.

#

I didn't see a way to do it via dashboard.

#

So was curious.

native trout
#

It wouldn't surprise me if it's API only, since there are consumer protection laws that may prevent you from legally being allowed to change that value. So I could see why it wouldn't be easy to change. And if your testing shows you will need to manipulate that value, you should speak to your legal/compliance advisor to ensure you're permitted to do so where you're operating.

random pike
#

hmm, okay

#

Looks like my friend found a way to make it show from the customer portal on the checkout

#

Gathering more details

#

I think I'm going to linger here for a bit while I take a closer look at this.

native trout
#

Hm, if you don't have any outstanding questions then I think we should close this thread out. When you have additional context you can come back and start a new thread, outlining where you're at then and what is blocking you.

random pike
#

That works for me.

#

I appreciate you.

#

Very helpful

vernal zealotBOT