Stripe: "Your request was in test mode, but not a test card was used"

I recently switched my accounts to Stripe, and in the process also switched from test to live. I persistently receive a message from Stripe when I send a real credit card to pay:

StripeResponse.error.message = "Your request was in test mode but used a non test card"

Checking Variables:

$ heroku config -r production
>> ...
STRIPE_API_KEY:              sk_live_XXXXXXXXXXXXXX
STRIPE_PUBLIC_KEY:           pk_live_XXXXXXXXXXXXXX

The values ​​of these keys correspond to the values ​​in the settings of my strip. My Stripe toolbar is also switching to life. There seems to be something left in my application when I tested, but I cannot figure out what it is.

What can Stripe say I'm in test mode?

+4
source share
1 answer

Make sure you use your live API key

heroku run console

puts Stripe.api_key

API ?

+2

Source: https://habr.com/ru/post/1546935/


All Articles