#ishfaq_45594

1 messages · Page 1 of 1 (latest)

lilac laurelBOT
keen herald
#

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?

night comet
#

yeah

#

from where we would get that highlighted field

keen herald
#

First can you clarify what is your end goal? What are you trying to do exactly here?

night comet
#

I'm tring future payments

keen herald
#

So you already have a saved payment method on the customer?

#

It's basically a two step process:

  1. Save payment details for later
  2. And then try to make a payment
    Looks like you are trying to do step 2 here. But did you finish step 1 first?
night comet
#

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

keen herald
#

Correct. Did you do step 1?

night comet
#

yes,
first register customer and did successfull payment

#

and then with same customer id, trying the 2nd payment

keen herald
#

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.

night comet
#

alright