#hayazee.
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Looks like you're not passing the correct path argument
The ID:
req_pRFniaQAKJqfMj
This is how I'm doing it:
const paymentIntent = await stripe.paymentIntents.create({
amount: amount, // This is the amount you'll retrieve on the frontend
currency: currency,
payment_method_types: ['card'],
metadata: {
walletId: walletId,
paymentMethod: 'CARD',
},
});
// Retrieve the payment intent
const paymentIntentRetrieve = await stripe.paymentIntents.retrieve(
paymentIntent.id
);
That's not the failing request from your screenshot
But it's the recent hit
Code looks mostly fine. Doesn't seem to reflect the error from the screenshot
That 1000 is the amount im passing from the frontend. do you think there must be an issue at the frontend ?
Looks to me like the argument passed to stripe.paymentIntents.retrieve is invalid
It's not the call to create the PI
GET /payment_intents/{intent}
?? I didn't got that
Can you tell me how can i use that paymentIntentRetreive to retrieve the amount from stripe and display it in my project?
It's literally in the screenshot you shared me
Ok ok, I got that now, sorry.I'll test it.