#hendr1x

1 messages ยท Page 1 of 1 (latest)

visual warrenBOT
quick vapor
#

Hi there!

#

I'm not sure I understand the question.

#

what exactly are you trying to do?

sick eagle
#

During my custom checkout I allow customers to come back to the payment step

#

I want to give customers the ability to edit their payment mthod

quick vapor
#

What is your "custom checkout"? Are you using the Payment Element + PaymentIntent?

sick eagle
#

Only thing built so far is customer -> payment method

quick vapor
#

At which step do you want customer to update their payment method? And what exactly do you want them to update?

sick eagle
#

if they go back to the payment page I want them to be able to update their payment method. I want them to be able to change the card they are using.

quick vapor
#

So what would you show in the UI? An empty Payment Element?

#

If so you can just create a new PaymentMethod

sick eagle
#

that would be fine with me. So do I have a way to delete the old payment method?

#

Is it just this?

quick vapor
#

Yes. Once detached the PaymentMethod can no longer be used.

sick eagle
#

ok. Thank you for your help

#

Have a great day

quick vapor
#

Happy to help ๐Ÿ™‚