#lukas-setupintent-confirm
1 messages ยท Page 1 of 1 (latest)
lukas-setupintent-confirm
@tranquil bramble what have you tried? I just tried locally and I get the PaymentMethod id
How can you get paymentMethod, it says that there is only error that exists in the response object:
const res: {
error: StripeError;
}
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
I cant even print, because it gets redirected to another page if there is no error
๐ hopping in here - what are you really trying to do here? is your goal to no longer redirect at all after success?
Well, yeah ideally, I would simply grab the payment method and charge the card for a particular product
but it seems like return_url is required
Why are you charging the card right after creating/confirming a setup intent?
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
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
That would be great, but I am also using stripe connect and I want to clone the payment method so that it works for all stripe connected accounts.
Would this be still possible?