#Davavico - payment method

1 messages · Page 1 of 1 (latest)

torn mist
#

Hi 👋

#

Could you provide a request ID so I can check what is happening?

exotic kindle
#

req_v6qmsPpFDd3Y5X

#

or this

#

pm_1KJMtIBm0hepolV7aOObAukd

torn mist
#

This request returned a 200 success message. Do you have one where you are trying to use confirmCardPayment and it is failing?

sleek notch
#

Archiving due to no response for a long time. You can open this up again later if you run into more issues.

copper ibex
#

Hey @exotic kindle let's chat here

exotic kindle
#

Hi

#

I have the problem can you see on top, and I discover that the error is in that function:
const pago = await stripe.paymentIntents.create({
amount: precio,
currency: "eur",
});

copper ibex
#

Could you provide a request ID where you're seeing the error mentioned above?

exotic kindle
#

That the error that node.js provide me

#

I think maybe the error was the secret key but i generate a new key and doesn´t work

copper ibex
#

Okay! looking into this

maiden basin
#

Are you absolutely certain that API key is correct? When you log the API key right before making the request does it match what you see in the dashboard?

exotic kindle
#

I will reconfig, wait a moment

#

i reconfigure the keys and i have the same error

maiden basin
#

Did you add the logging to confirm that the key you're using is correct?

exotic kindle
#

the logging? i dont understabnd

maiden basin
#

Yes, like adding just a simple log line to confirm that whatever API key you're using in your integration is correct - clearly something is going wrong, and the logging should at least give more information on what it could be

exotic kindle
#

ahh ok wait

#

ok, i find the problem.... i had configuren .env whit SECRET_KEY={thekey} and the correct its SECRET_KEY=thekey

#

thanks you for the time!

maiden basin
#

👍 glad you could find the issue!