#Davavico - payment method
1 messages · Page 1 of 1 (latest)
This request returned a 200 success message. Do you have one where you are trying to use confirmCardPayment and it is failing?
Archiving due to no response for a long time. You can open this up again later if you run into more issues.
Hey @exotic kindle let's chat here
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",
});
Could you provide a request ID where you're seeing the error mentioned above?
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
Okay! looking into this
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?
Did you add the logging to confirm that the key you're using is correct?
the logging? i dont understabnd
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
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!
👍 glad you could find the issue!