#ilyeselb

1 messages · Page 1 of 1 (latest)

upbeat galleonBOT
chrome stirrup
#

Hello

#

Do you have a request ID that you can share?

#

Overall that sounds like you aren't passing a PaymentMethod ID and confirm: true to your PaymentIntent

heavy wind
#

nope but i have cus i

chrome stirrup
#

When you are attempting to charge later

heavy wind
#

payment id

chrome stirrup
#

Sure that works

heavy wind
#

i im passing every thing

#

"pi_3NsmsBGyOBDbEOMC1ryLKrx8"

chrome stirrup
#

Hmm that PaymentIntent you provided me is from an Invoice

#

However in your code you are creating a PaymentIntent directly

#

Are you trying to use Invoices here?

heavy wind
#

i just create invoice before every thing in case user pay directly with the form

#

and use that invoice to get the amount

#

in the createintent

chrome stirrup
#

You are creating an Invoice with no intention of paying it?

heavy wind
#

no i im otherwise if the user is selecting the saved card to pay i will delete it

chrome stirrup
#

Hmm okay. Why not just pay that Invoice via a saved card?

heavy wind
#

how can i do that

#

?

chrome stirrup
heavy wind
#

sounds good for me

#

i will check that

#

option

#

payment method only

#

or i should have the offSession param

#

asweel

#

well

chrome stirrup
#

That's the default with this method

#

(off_session: true I mean)

heavy wind
#

okay and there is not confirm opption like on the createIntent

#

where it confirm the card ?

chrome stirrup
#

This confirms the PaymentIntent for you.

#

The other option is to pass the client secret to the frontend and use confirmPayment() and pass the saved PaymentMethod ID to that method

#

Both options work fine here

#

And it more depends on whether your customer is on or off-session

heavy wind
#

i see thank you