#james-checkout-savecards

1 messages · Page 1 of 1 (latest)

inner saddleBOT
simple spire
snow crown
#

Thank you for the response. i am following this but it seems not to be working.

simple spire
#

Can you give me the Customer ID you're using?

snow crown
#

i am passing in the customer who has a saved payment method but when i go to checkout only the email is prefilled and the payment method is empty

#

sure

#

'cus_OV21H1nPiyHD56'

simple spire
#

That Customer does not have any attached Payment Methods.

snow crown
#

oh but i do have a default payment method which i can see on my dashboard

#

let me confirm that. thank you.

simple spire
#

I think you might be looking at a different Customer perhaps?

snow crown
#

i just tried again with a different customer who definitely has a payment method

#

cus_OV0WiC0yQ7hTzv

#

this time it prefilled the location and post code

#

but not the payment information

#

payment information for this customer is pm_1Ni0W7LXvJT74HZxLvwZv99S

#

still doesnt prefill the payment information on checkout

inner saddleBOT
simple spire
#

Yep, that one does have the Payment Method you mentioned. Looks like this Payment Method wasn't set up for future use with Checkout though, which is probably why it's not showing up in Checkout as an option now.

snow crown
#

okay got it. i will try to set that up now. thank you

#

how do i set that up?

deep trench
#

james-checkout-savecards

snow crown
#

thank you!

#

oh! does this mean that the prefilled payment method can only work if the payment information was collected with a stripe checkout? we are using create payment intent and setup intent everywhere else in our code. and that is how we create the payment method.. i should be able to pass in the setup future usage there and should work fine? i will give it a try

deep trench
#

as long as the card PaymentMethod meets the require,emt in the doc linked earlier it will work

#

I just gave you the parameter for Checkout, but if you use PaymentIntent or SetupIntent it's the same thing: make sure the card PaymentMethod is properly attached to the Customer

snow crown
#

thank you so much. you have been incredibly helpful. i have one last question. for the success_url, if we do not want to customize and just want a stripe page that says sucess payment complete. is this possible?

deep trench
#

you would build your own success page for this

snow crown
#

okay. got it

#

thank you again.