#MadMac
1 messages · Page 1 of 1 (latest)
Hi there, Stripe checkout will pre-fill the form with the last used payment_method, it doesn't have an option for customer to choose which saved payment method to use.
Yes I understand that, but it is not working for just one payment method
So that 100 donation is not prefilling. The customer has only one payment method as shown in last image
Is it the last used checkout payment_method (pm added via checkout) or the last used payment method?
Can you share with me the checkout session ID?
sure
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Is that ok?
"id": "cs_test_a1Lb7RgmY7ZB3cT37hgjQGENsL13eH718u9HbLB2xBQGrAIHYAOsXnlOUG"
Sure, let me take a look
If you are looking at that customer I have deleted the pm that was created by checkout and was working
The customer's payment_method wasn't created via Checkout, so Stripe won't use it to pre-fill subsequent checkout sessions.
Ok so only pm's created via Stripe checkout will prefill in checkout?
Yes you are right.
Follow up questions
- What if a customer adds a pm via Portal?
- Is there any way to tell the difference between these pms? As you can see from my CLI screen shots there appears to be no difference
- So basically the different Stripe components don't play nice together. Is this intentional or do you think this may be changed to work sometime in the future?
?
Thanks for the waiting.
If you've already created the payment method, you can create an off_session charge on the customer without using a Checkout session.
Unfortunately I think I need to use a checkout session. I will have a think though. Any answers to Questions 1, 2 and 3?
- Stripe won't use the payment method created in customer billing portal to prefill a checkout page
- I checked the payment method creation request to tell whether the payment method was created via Checkoutsession
- You have a good point. If you think it's a feature request, please let Stripe support know https://support.stripe.com/contact
Ah #2 is a good tip. Strange there is no visible difference between them.
I will raise a feature request as it basically means that for a project you have to only use one component of Stripe and not mix them.
Thanks for your help, good explanation
There's an alternative solution actually. you can use Link to display the saved payment methods in checkout pages
oh really?
Yes, sorry I should mention this earlier.
I see. Do you mind to tell me what stops you from using Link?
I did compare them. I can't remember all the details now. Link seems really cool but was more suited to no-code and checkout seemed to be the way to go if your were using the Stripe API's
Plus I already had an app and website I was launching from
Ah, Link wasn't supported in Checkout before, but it's now.
Yeah its improving fast
It is very cool
So you think if I use link it will prefill in checkout?
I will give it a try next week!
Sounds great!