#dxher - Payment Intennts

1 messages · Page 1 of 1 (latest)

valid void
#

Hi 👋

#

Can you share the request ID for a request that triggered this error?

karmic nest
#

for sure one second

#

req_6sxZUDTwX4Hafr

valid void
#

Thanks, looking

#

This was a successful creation request for a Payment Intent.

#

How are you trying to confirm it?

karmic nest
#

stripe.paymentIntents.confirm

valid void
#

On the server?

karmic nest
#

yes

valid void
karmic nest
#

Yeah I know but that's the issue, Im already passing strings. Correct me if I'm wrong but this is what I believe is the issue. The code is the following:

#

var success = stripe.paymentIntents.confirm({
charge_id,
payment_method: card_id
},function (error, success){}

#

success comes out to be null

#

and thus why I get object instead of string I believe

#

but I'm not sure if it's success thats not read as a string or charge_id or card_id

#

However I know that charge_id and card_id are strings

valid void
#

The Confirm call will return the payment intent object if you await it

karmic nest
#

its an unexpected identifier

#

crashes the code

valid void
#

Okay but can you log the value immediately prior to calling the function?

#

Using the syntax in the snippet in the API ref doc I provided should allow you to test this.