#Payment Failed

1 messages · Page 1 of 1 (latest)

spice obsidian
#

I am trying to create one time payment and then using the link to test it but it's getting failed and same thing happening in my code. I have node Js express server code where I have created api to get products from dodo payments and that object I have created using test mode api key but while calling that api it gives unauthorised error. **Note: Before It was working perfect. **

livid adder
#

Hey if you are using live mode you need to use live mode api key

spice obsidian
#

Nope I am using test mode

#

Still let me check in dashboard.

#

Yes resolved. It got changed to live mode.

#

Thank you @livid adder

#

But payment is still getting failed @livid adder

spice obsidian
#

Before I was able to payment using test mode details now all payments are getting failed. I have changed nothing. @livid adder Can you please help me

livid adder
#

Payment failed as in payment link is not gettin generated?

spice obsidian
#

No, payment link is generated. I am able to fill details like address and all but when I submit details of card which mentioned on docs after that steps it says transaction failed.

livid adder
#

is this in live mode or test mode?

#

also what does the error message say? you can find it in the dashboard

spice obsidian
#

test mode

livid adder
#

are you using the test card to simulate the transaction?

spice obsidian
#

Yes and in dashboard error message says Your card was declined.

livid adder
#

what is the test card number you are using?

spice obsidian
#

4000000000000127 - India
4000000000000002 - International

Tried both

#

from here

#

Ohh now I got it