#fabrizio-regio_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/1364212859835383951
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Can you describe me wich steps I have to follow to test Stripe environment SandBox?
I am looking at the request you shared, and I can't see how it's related to the question.
Could you please share the Request ID with the error message?
The first time I receive the invoices the second time I don't
Where do you expect to receive the Invoices exactly?
The invoices I expect to read are from the new Sanbox environment and I don't read them
The invoices I can read are from my customer REDRAION's production environment
I don't read them
What do you mean by this?
What API calls are you making?
What's the exact Invoice IDs you're expecting to get?
I don' read them = I don't receive none invoice from your sandbox environment
API Calls = https://api.stripe.com/v1/invoices
Invoice IDs = this for example in_1RGeG8FwakPfA19oxrqJ1a79
Could you please share an example Request ID?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I mean, a request to fetch Invoices via API. I want to check if the credentials on the request you're sending matches the account which this Invoice belongs to.
Sorry! One question before respond your answer... The API endpoint change if I'm in sanbox environment or in production environmet?
The endpoints URLs are the same, if that's what you're asking.
The difference is in API keys and the objects that are returned.
Why do you write in returned items?
Invoices received from production environment are different from sandbox environment?
Yes. Each environment stores different API objects, for isolation.
Ok but the format is the same... data are different?
Yes
The invoices are different objects, corresponding to customers, products, prices and invoices you've created in that sandbox environment.
This is completely separate from live mode, or any other sandbox
okok
I tryng to respond your request, wait a moment please
{Method: GET, RequestUri: 'https://api.stripe.com/test/invoices', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer sk_test_51RGc1VFwakPfA19oNiuFcmO9BWRt0axHtnYoFh6Pd695pE0FS82ygCn0UJwAuR6k9rqaGW3koJm6jMkLzAxyvDTU00qUoBIvau
Content-Type: text/plain; charset=utf-8
}}
sorry
You have revealed your test API there, so you should make sure to roll it: https://stripe.com/docs/keys#rolling-keys
{Method: GET, RequestUri: 'https://api.stripe.com/v1/invoices', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer sk_test_51RGc1VFwakPfA19oNiuFcmO9BWRt0axHtnYoFh6Pd695pE0FS82ygCn0UJwAuR6k9rqaGW3koJm6jMkLzAxyvDTU00qUoBIvau
Content-Type: text/plain; charset=utf-8
}}
this is the real call, sorry
That's an Invoies LIst API request, using a test secret key (ie in test mode or a sandbox)
Do you have a question about this?
Whic is the difference from test mode or sandbox??
Mostly sandboxes are a new way to manage test mode that improves the experience in multiple ways. For example, you can have multiple sandboxes under your actual account, and they have complete isolated settings, unlike test mode with only had partial settings available but in many cases inherited settigns from live mode.
You can read more here: https://docs.stripe.com/sandboxes
A doubt comes to me: We at Soluzioni Informatiche S.p.A, who do not have a Stripe subscription, can we create Sandboxes to do tests?
I'm not sure what that is or what the problem is. Can you explain more to give me context?
Sandboxes are something you set up as the owner/admin/dev on a Stripe account using the Dashboard
You need access to the dashboard to set this up
We are employeers of Soluzioni Informatiche S.p.A. italian company. We are a programmers that manage your Italian customer named RADRAION.
Why after creating an empty sandbox stripe and filling it with invoice elements we are not able to read them from the test API key generated in the sandbox itself?
You were given access to the account as developers and created this sandbox yourselves, or someone else created it for you?
Can you share an example Invoice ID that you expected to get in those results? eg in_12345
I can check if it belongs to the same sandbox or if you're creating & retrieving in two different sandboxes
in_1RGeG8FwakPfA19oxrqJ1a79
ok, that is in the same sandbox as the request & key you shared earlier
Why I don't retreive it from my program?
I can't see the results of your List (GET) requests. What are you getting back?
zero invoices out of three previously created
The response is empty, or does not include any of a set of three you expect?
yep
I see you have set a limit of eg 1 or 3 , so this will truncate the results
no limit
Can you make this list request again right now and share the request ID with me?
req_123
for undersrtand.....
Is right that I, developer of Soluzioni Informatiche, I make a SandBox without none account of REDRAION?
I don't know anything about the names here. If there's a single Stripe account for your client that you have access to, sandboxes can be created for development/testing to isolate your work from the live account.
It seems like you have some general questions about sandboxes, but this is distinct from any challenges you're facing with listing invoices in a sandbox where you expect to have created some.
https://dashboard.stripe.com/test/logs/req_k3eQxXM2KB0GCb
Can you try repeating this list request and specify the customer explicitly?
customer=cus_SAypXdlqT5vR8q
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
That customer/subscription is using a test clock, and these results are expected to be omitted. You need to specify the customer or subscription ID (or the test_clock ID itself).
https://docs.stripe.com/billing/testing/test-clocks/api-advanced-usage#test-clock-objects-omitted-in-list-all-results
Test clock objects omitted in list all results
Stripe list APIs (such as List invoices) omit results generated by test clocks for list all requests. To see results generated by test clocks in these cases, you must request results within a specific parent, such as test_clock, customer, or subscription.For example, GET /v1/invoices won’t return test clock generated invoices, but GET /v1/invoices/{customer_id} returns all invoices for that customer, including those that are test clock generated.
Similarly, you can specify a test clock ID in this example to get all invoices related to that test clock, or you can specify a subscription ID to return all invoices billed for that subscription, including test clock generated invoices.
cus_SAypXdlqT5vR8q is REDRAION?
I don't know -- you need to look at the details of that customer