#kevin-logan_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- kevin-logan_api, 40 minutes ago, 5 messages
- kevin-logan_redisplay-saved-payment-methods, 2 hours ago, 6 messages
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.
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)
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
hmm, yeah, I should be able to send you the link.
organizing now
Not sure if this will work for you
NP! And just to clarify the ask, you're trying to show saved payment methods correct?
Yeah. In my head, payment methods in general are saved payment methods.
It does. I see
Yeah. In my head, payment methods in general are saved payment methods.
Umm not sure I understand.
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.
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..
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
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?
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
Here's an example Checkout Session I just created - https://checkout.stripe.com/c/pay/cs_test_a1O2Op22wUYjEw2NBYQnzuqlvaB7XGHOxZkcwerpSMrTWkzHk8Mpj0Mhy6#fidnandhYHdWcXxpYCc%2FJ2FgY2RwaXEnKSdkdWxOYHwnPyd1blpxYHZxWjA0V2pQM0ZJfEljZDFgZDA2REIxSHdqaEpOQVM8c31zb0pVZG1WSUcxfENcSnNhamFVQFNtS3JAUDQ1MFBof3V%2FYHREa0ZLR3VVb0A0RFYxYnNga0lvcWB1NTVzf25Cb382TycpJ2N3amhWYHdzYHcnP3F3cGApJ2dkZm5id2pwa2FGamlqdyc%2FJyZjY2NjY2MnKSdpZHxqcHFRfHVgJz8ndmxrYmlgWmxxYGgnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl
You may be able to do it via the dashboard, yes
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
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?
Correct. We don't prefill bank accounts, just cards as far as I know;
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?
Hi ๐ I'm jumping in as my teammate needs to step away.
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.
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.
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.
Depends on whether the Payment Element is the experience you want to present. I could also see why you may prefer to just show a list of already setup Payment Methods in your own UI, and only use the Payment Element for saving new Payment Methods.
Not if you're using v1 Accounts.
What's the current version?
Both v1 and v2 are currently valid integration paths.
ahhh
I'd prefer the hosted checkout just because it is the quickest go-to market solution. But, the ability to see and choose from their payment methods is a requirement.
Makes sense
Gotcha, then the Payment Element with Customer Sessions is what I'd suggest looking into:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#save-payment-methods
It lets you show saved payment methods, and may be quicker than building that functionality.
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.
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?
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
Gotcha, I'm not really sure what you're trying to ask, but that functionality is explained here:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form#save-payment-methods-to-prefill-them-in-checkout
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
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. **
is it possible to save a payment method in the customer portal and then have it show up in the hosted checkout experience?
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.
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.
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.
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.
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.