#MadMac

1 messages · Page 1 of 1 (latest)

coarse quartzBOT
cursive marsh
#

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.

wanton vault
#

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?

cursive marsh
#

Can you share with me the checkout session ID?

wanton vault
#

sure

#

Is that ok?

#

"id": "cs_test_a1Lb7RgmY7ZB3cT37hgjQGENsL13eH718u9HbLB2xBQGrAIHYAOsXnlOUG"

cursive marsh
#

Sure, let me take a look

wanton vault
#

If you are looking at that customer I have deleted the pm that was created by checkout and was working

cursive marsh
#

The customer's payment_method wasn't created via Checkout, so Stripe won't use it to pre-fill subsequent checkout sessions.

wanton vault
#

Ok so only pm's created via Stripe checkout will prefill in checkout?

cursive marsh
#

Yes you are right.

wanton vault
#

Follow up questions

  1. What if a customer adds a pm via Portal?
  2. 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
#
  1. 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?
#

?

cursive marsh
#

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.

wanton vault
#

Unfortunately I think I need to use a checkout session. I will have a think though. Any answers to Questions 1, 2 and 3?

cursive marsh
#
  1. Stripe won't use the payment method created in customer billing portal to prefill a checkout page
  2. I checked the payment method creation request to tell whether the payment method was created via Checkoutsession
  3. You have a good point. If you think it's a feature request, please let Stripe support know https://support.stripe.com/contact
wanton vault
#

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

cursive marsh
#

There's an alternative solution actually. you can use Link to display the saved payment methods in checkout pages

wanton vault
#

oh really?

cursive marsh
#

Yes, sorry I should mention this earlier.

wanton vault
#

That could be a workaround, I did have a look at link

#

but decided on checkout

cursive marsh
#

I see. Do you mind to tell me what stops you from using Link?

wanton vault
#

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

cursive marsh
#

Ah, Link wasn't supported in Checkout before, but it's now.

wanton vault
#

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!

cursive marsh
#

Sounds great!