#amankumar_24191

1 messages · Page 1 of 1 (latest)

mint spruceBOT
finite warren
#

👋 happy to help

kind prairie
#

Can't I call a function from confirm method, just like I am able to do it on a failed payment?

finite warren
#

would you mind elaborating a bit more?

kind prairie
#

When someone clicks on pay after entering their details I want to attach the payment method to the customer so that I can charge them later

finite warren
#

you should be using setup_future_usage then

kind prairie
#

I have already done that.

finite warren
#

if you have and if you passed the customer ID when creating the payment then the payment method will be attached

kind prairie
#

It saves on the stripe side but I would the payment method id to make it default and charge again

finite warren
#

then you need to run this in the webhooks

kind prairie
#

ok, thanks