#gaz_api

1 messages ¡ Page 1 of 1 (latest)

unreal wraithBOT
#

👋 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.

pale lynx
#

i assume i need to put stripe into "production" mode, just wondering where?

inland delta
#

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

pale lynx
#

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

inland delta
#

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

inland delta
#

@pale lynx did it work?

pale lynx
#

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

inland delta
#

you'd use your live key instead of the test key, yes

pale lynx
#

thanks testing now

unreal wraithBOT