#keystoenchancia_code

1 messages ยท Page 1 of 1 (latest)

dusk belfryBOT
#

๐Ÿ‘‹ 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/1343890091621220373

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

meager silo
#

hey, i'm having difficulty with my code, i have an error in line 58 which is

#

subscription = stripe.Subscription.retrieve(subscription_id)

sullen flame
#

Hi, let me help you with this.

#

What's the exact error you're seeing?

meager silo
#

{
insertId: "67bd966c00023a0409e3be95"
labels: {1}
logName: "projects/artful-wind-449817-f9/logs/run.googleapis.com%2Fstdout"
payload: "textPayload"
receiveLocation: "us-central1"
receiveTimestamp: "2025-02-25T10:07:40.485334019Z"
resource: {2}
severity: "DEFAULT"
textPayload: " File "/app/app.py", line 58, in stripe_webhook"
timestamp: "2025-02-25T10:07:40.145924Z"
traceSampled: false
}

#

is what i'm reading here, sorry it's taken me to ask you this, but does it mean i can't run this in test mode?

sullen flame
#

No. It says that you used your publishable key where you should have used your secret key. Each environment - Live mode and Test mode - gets a set of 2 keys. Publishable should be used on the client side and secret should be used on the backend.
https://docs.stripe.com/api/authentication

meager silo
#

ah gotcha