#dxher - Payment Intennts
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you share the request ID for a request that triggered this error?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Thanks, looking
This was a successful creation request for a Payment Intent.
How are you trying to confirm it?
stripe.paymentIntents.confirm
On the server?
yes
Well looking at the error message you got, it seems like you were passing an object rather than the string of the ID value, which is what the payment intent API expects:
https://stripe.com/docs/api/payment_intents/confirm
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
The Confirm call will return the payment intent object if you await it