#kittykat_api

1 messages · Page 1 of 1 (latest)

covert hareBOT
#

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

clever schoonerBOT
feral gulch
#

How are you setting your API key in utils.py (make sure to redact it)

hot crystal
#

import stripe

from cfehome.env import config

STRIPE_SECRET_KEY = config("STRIPE_SECRET_KEY", default=None)
stripe.api_key = STRIPE_SECRET_KEY

feral gulch
#

And when you just hardcode it as stripe.api_key = "sk_test_123etc" it also doesn't work?

hot crystal
#

yes, it doesnt work. gives same error of stripe._error.AuthenticationError: No API key provided.

feral gulch
#

Are your calls to stripe also happening in the utils.py file?

hot crystal
covert hareBOT
hot crystal
#

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 ?

feral gulch
#

Yeah that means the API key is correct

hot crystal
#

oh great! but how do i resolve this one? i am only using api for the project purpose

hallow osprey
#

How do you resolve that error about Indian regulations?

hot crystal
#

i have never did this before.

hallow osprey
#

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?

hot crystal
#

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:

hallow osprey
hot crystal
#

i dont have IECs, billing addresses or other official requirement. Will i be able to use stripe only for test/ dummy link purposes?

hallow osprey
#

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.