#keystoenchancia_code
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/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.
- keystoenchancia_code, 7 minutes ago, 37 messages
- keystoenchancia_code, 19 hours ago, 25 messages
- keystoenchancia_api, 20 hours ago, 28 messages
hey, i'm having difficulty with my code, i have an error in line 58 which is
subscription = stripe.Subscription.retrieve(subscription_id)
here is my full code:
{
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
}
stripe._error.PermissionError: Request req_yaxObXHmFDiEG8: This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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?
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
ah gotcha