#kryze_
1 messages · Page 1 of 1 (latest)
Can you provide more details?
Yes of course,
I created a Shipping option in the Test Environement of Stripe which gave me an ID and I putted it on the array of shipping options :
[{shipping_rate: 'shr_1OHpCiEuhOHWb2vbxN50dyxB'}]
But it said that this value doesn't exists
can you share a request ID?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
There isn't because i only got :
Stripe::InvalidRequestError (No such shipping rate: 'shr_1OHpCiEuhOHWb2vbxN50dyxB'):
there must be since this is an API error.
If you're not seeing this in your logs then you're most likely using the API key from a different account
Is it possible that the key has expired ?
Unlikely. The error would've been different in that case
Because my API keys are right
Are you able to see this request in your dashboard?
https://dashboard.stripe.com/test/logs/req_LsqWaIJcQqOwSC
Shipping rate was created on acct_1NflsgEuhOHWb2vb account
Yes it's the right account
Are you maybe using live mode keys vs test mode?
No they have the test part in front of it
invalid request error comes from Stripe servers. So there has to be a request ID associated with that.
Since you're not seeing that in your account logs, the only thing that makes sense is that you're using the wrong API key/account for this
oh do you use connect?
I changed something in another workflow and got and error in the logs
like are you setting Stripe-Account header somewhere?
Let me check
No, but the thing is, it's a project I worked on until october and I had to add shipping so everything was working fine ! When I added the shipping options in Test mode it returned me an error, but on the same app I have a payement with "Hand to Hand delivery" which don't require delivery, this one throw me an error when I changed the Tax value just to see if it show me something
The new error in your logs is regarding tax rate
No such tax rate: 'txr_1NpXgcJXQ6ZddqMfBmK5GfmK'
Yes it's this one, it's the same app, using the same API keys
that tax rate belongs to acct_1I8i7VJXQ6ZddqMf
so these are different stripe accounts
Yes it's the production key
I putted it here just to check if it was on the production account
So you are using two different API keys since these are two separate stripe accounts
No, wait I'll explain again
It's a project for a client, I'm the dev account of it. The tax rate used here has nothing to do with my error. I copied it from the production env just to see if it will throw me an error on the Test version
Which it did
But I am seeing shipping rate errors on the acct_1I8i7VJXQ6ZddqMf
so you've mixed up the API keys
Is there a place when I can send you the api keys used ?
No such shipping rate: 'shr_1OHpCiEuhOHWb2vbxN50dyxB'
https://dashboard.stripe.com/test/logs/req_vJh3mei78jtOci
No, please don't share the API keys
I know I'm not sharing in public
the link I shared above is for a request that belongs to acct_1I8i7VJXQ6ZddqMf
Yes I can't see it this one
what format is the API key?
sk_test_xxx or something else?
But my keys are both sk_test and pk_test
okay let me explain
sk_test_xxx is Secret API key for test mode on a Stripe account
Each Stripe account gets their own set of keys
In your case,
'shr_1OHpCiEuhOHWb2vbxN50dyxB' shipping rate was created on account acct_1NflsgEuhOHWb2vb using that account's secret key (sk_test_xx)
The shipping rate request errors you're getting are on account acct_1I8i7VJXQ6ZddqMf which means you're trying to use the shipping rate from acct_1NflsgEuhOHWb2vb account using acct_1I8i7VJXQ6ZddqMf's secret API keys
because acct_1I8i7VJXQ6ZddqMf's API key can't find that shipping rate
Okay but how is it possible I only have one account, I'm the only dev
Where can I see connected account ?
see*
There should only be me and the proprietary here, which doesn't know anything about computer and API keys
I've never even had access to another account besides mine
Not sure what you mean. acct_1I8i7VJXQ6ZddqMfand acct_1NflsgEuhOHWb2vb are two separate accounts and they are not connected to each other.
You may need to ask your colleagues if they are aware of this other account. Though if the end goal is just testing shipping rates on acct_1NflsgEuhOHWb2vb (the account that you are making API requests on now), it may be easiest to just recreate those shipping rates in test mode on this new account
Where can I see connected accounts ?
see*
Because what I don't understand is :
- I Created the test shipping rates from my account 3h ago (I don't have access to any other account)
- The Shipping rates are showing on the test env of the Shop name I'm working on with the orange bar "Test Mode"
- When I go to API Keys (still in test mode) it show me exactly the same keys as the one in my env
- When I use my other workflow it logs in the right place (I use still the same keys)
You can see your connected accounts at this URL but the two accounts mentioned here are not connected, so you will not see the other account on this page
https://dashboard.stripe.com/test/connect/accounts/overview
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It sounds like your dashboard is logged in to a different account than the API key that you are currently using
So the other solution to this may be to grab your API keys again from the developer page with your API keys in test mode
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It's not possible is it possible to be an error on your hand ? I think I found the error but it's strange
It still doesn't explain who is this other account
Frankly, no it is not. These are two separate accounts that were created separately and set up with similar but slightly different account info.