#ishfaq_45594
1 messages · Page 1 of 1 (latest)
Hi there!
But having an issue when trying to confirm payment Intent.
What's the issue exactly? Do you get an error message? Which one?
First can you clarify what is your end goal? What are you trying to do exactly here?
I'm tring future payments
So you already have a saved payment method on the customer?
It's basically a two step process:
- Save payment details for later
- And then try to make a payment
Looks like you are trying to do step 2 here. But did you finish step 1 first?
Like
Step-1: Customer try payment and agree to save payment details for future
Step-2: When there is some charge due, system will send a payment request on behalf of the customer in his absense
Correct. Did you do step 1?
If so, then you should have a PaymentMethod on the customer, that you can list with this: https://stripe.com/docs/api/payment_methods/customer_list
yes,
first register customer and did successfull payment
and then with same customer id, trying the 2nd payment
Then yes, list the PaymentMethod of the customer (see link above), to retrieve the PaymentMethod ID, and then create a new PaymentIntent with payment_methid: pm_xxx.
alright