You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2021. It is now read-only.
Hey @DDholiyan This is almost always because of the .env file not being correctly configured. Can you share the output of the server log when you get this error?
This is on most of the response. See below declined response.
{
"error": {
"code": "card_declined",
"decline_code": "live_mode_test_card",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card was declined. Your request was in live mode, but used a known test card.",
"type": "card_error"
}
}
Console:- Uncaught (in promise) TypeError: Cannot read property 'json' of undefined
at script.js line no 118
That means the sample was configured with live mode API keys to take real payments, but a test card was used. Test cards only work with test mode API keys. Try using your test mode API keys.
Bug report
script.js:117 Uncaught (in promise) TypeError: Cannot read property 'json' of undefined
Describe the bug
Below line gives above error
return result.json();
The text was updated successfully, but these errors were encountered: