#hayazee.
1 messages · Page 1 of 1 (latest)
I have retrieved the paymentIntent. And from the paymentIntent, I want to get the amount and add/display it in my project.
It's giving me this error:
Unknown arguments (10000). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to GET `/payment_intents/{intent}`)
would you mind sharing your code?
NVM It's working perfectly Now.
Yea sure the code which was throwing the problem:
// Retrieve the payment intent
const retrievedPaymentIntent = await stripe.paymentIntents.retrieve(
paymentIntent.id,
paymentIntent.amount
);
Just had to remove that paymentIntent.amount:
// Retrieve the payment intent
const retrievedPaymentIntent = await stripe.paymentIntents.retrieve(
paymentIntent.id
);
yes
Thank you!