#lukas-setupintent-confirm

1 messages ยท Page 1 of 1 (latest)

gusty horizonBOT
swift pivot
#

lukas-setupintent-confirm

#

@tranquil bramble what have you tried? I just tried locally and I get the PaymentMethod id

gusty horizonBOT
tranquil bramble
swift pivot
#

yeah you're using magic here to only look at error not the whole response though

#

replace that with const result = ... and then print result and it'll be right there

tranquil bramble
shadow nimbus
#

๐Ÿ‘‹ hopping in here - what are you really trying to do here? is your goal to no longer redirect at all after success?

tranquil bramble
#

but it seems like return_url is required

shadow nimbus
#

Why are you charging the card right after creating/confirming a setup intent?

tranquil bramble
#

I am trying to make this flow:
Customer picks the product -> goes to checkout -> if they don't have any cards attached to the customer -> then add a card -> charge the customer for the product that they selected before

shadow nimbus
#

If you're chargin them immediately you can use a Payment Intent w/ setup_future_usage set to save the card AND charge it at the same time

tranquil bramble
shadow nimbus
#

Yup you should still be able to clone payment methods when they're set up through a Paymetn Intent w/ setup_future_usage

#

As long as the Payment Method is attached to a Customer you should be good to go

tranquil bramble
#

ok im going to try that

#

thanks