#hayazee.

1 messages · Page 1 of 1 (latest)

scenic walrusBOT
sage cairn
#

Looks like you're not passing the correct path argument

flat wind
#

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
);
sage cairn
flat wind
#

But it's the recent hit

sage cairn
flat wind
#

That 1000 is the amount im passing from the frontend. do you think there must be an issue at the frontend ?

sage cairn
#

Looks to me like the argument passed to stripe.paymentIntents.retrieve is invalid

sage cairn
#

GET /payment_intents/{intent}

flat wind
#

?? 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?

sage cairn
flat wind
#

Ok ok, I got that now, sorry.I'll test it.