#kittykat_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/1220441198225784943
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
How are you setting your API key in utils.py (make sure to redact it)
import stripe
from cfehome.env import config
STRIPE_SECRET_KEY = config("STRIPE_SECRET_KEY", default=None)
stripe.api_key = STRIPE_SECRET_KEY
And when you just hardcode it as stripe.api_key = "sk_test_123etc" it also doesn't work?
yes, it doesnt work. gives same error of stripe._error.AuthenticationError: No API key provided.
hi Karbi i tried to run with hardcode key and called the function in terminal recent error is stripe._error.InvalidRequestError: Request req_XwZ7wFwIyhchWF: As per Indian regulations, only registered Indian businesses (i.e. sole proprietorships, limited liability partnerships and companies, but not individuals) can accept international payments.
does it mean api is connected ?
Yeah that means the API key is correct
oh great! but how do i resolve this one? i am only using api for the project purpose
How do you resolve that error about Indian regulations?
i have never did this before.
Understood, and I would like to help you. Since you're now past the missing API key issue, what specifically do you need help with?
I am new to coding. I am trying to use stripe payment for my ecommerce website project in django. I would appreciate if you could help me integrate stripe by resolving the latest error i.e. stripe._error.InvalidRequestError: Request req_XwZ7wFwIyhchWF:
The error links to a doc with more explanation about Indian export payments that you should review: https://docs.stripe.com/india-accept-international-payments
i dont have IECs, billing addresses or other official requirement. Will i be able to use stripe only for test/ dummy link purposes?
In order to present in a non-INR currency, you’ll need to provide additional information in onboarding and in API requests, since these transactions are considered exports from India.