#gaz_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1345062218311401483
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
i assume i need to put stripe into "production" mode, just wondering where?
Hi, that typically happens when you use a a real card number when using yout test api keys. You can use hhttps://docs.stripe.com/testing?testing-method=card-numbers&payment-method=others#cards
You can't test real cards as that is against your Terms of Service
Since you're using your test api key, https://docs.stripe.com/keys you can use the cards shared above
i want to use real cards, real keys etc
pretty sure i am
i specified STRIPE_SECRET_KEY
so i expected it to be in production now
or maybe theres a switch in the stripe backend to flip?
i cant access it because it belongs to my client, but i recall seeing one once
brb phone
You can't test in live mode
If you're looking to go into production, you can swicth yoiur API key to your live key
@pale lynx did it work?
hi sorry i was away
yeh i put the live key in
buti ts the same, i see on the example terminal backend theres this code
Stripe.api_key = ENV['STRIPE_ENV'] == 'production' ? ENV['STRIPE_SECRET_KEY'] : ENV['STRIPE_TEST_SECRET_KEY']
so i guess i just need to set STRIPE_ENV='production in my backend
you'd use your live key instead of the test key, yes
thanks testing now