#steve-c_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/1497086295212822663
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Its just a 1 on 1 chat
Unable to process payment: Creating a Checkout session in testmode without an existing customer is not supported while using Accounts V2. Please use a Sandbox, rather than testmode, for testing Checkout: https://docs.stripe.com/sandboxes
This guide outlines Stripe Sandboxes, an isolated test environment for safely testing Stripe functionality without affecting live data. It describes use cases such as simulating transactions without real money and managing isolated testing environments for teams. The guide also provides instructions for managing sandboxes in the Stripe Dashboard...
^^ the problem
When I create a 'sandbox' there's no option to copy over items from test mode
Which now means I have LOT of work to set it all up manually
And naturaly, I'm ***ing pssed about that!
Like, Stripe gives the option to create a sandbox based on live mode, but not from test mode
wtf were you thinking?
Also, the UI on the stripe dashboard is confusing af, since it literally says 'test mode' is a sandbox (which would have made sense - i.e. stripe could have made 'test mode' a sandbox so the user isn't too interrupted). But no, the UI simply says 'test mode' is a sandbox, but it isn't. I can confirm because I'm using the test mode keys and it's giving the previously mentioned error.
Basically test fail now, because I cannot test until I set up a 'sandbox', and that will take hours, and be miserable.
Because Stripe gives no way to simply made 'test mode' into a sandbox, or create a new sandbox based on 'test mode'.
Why are the most common-sense options completely out of reach for stripe. ๐คทโโ๏ธ
Basically, you've rolled out a half-baked feature. And cut off access to test mode.
Anyway, I was hoping others would be feeling the pain and letting stripe know
hence why I wanted to come in the forum and read what's going on. But seems Stripe have removed the discord.
Also, your AI is useless too. when I ask it any of the above questions, it just replies
I can only answer questions about Stripe.
When I tell it the question is about Stripe is just repeats the same thing
Hi @hollow herald I'm taking over this thread, let me take a look at the past conversations
there's not much to see.
I'd say this will take stripe time to fix
my tests simply won't run until you make it possible to make a 'sandbox' based on test mode (rather than just live mode)
To clarify, is this problem that you are trying to solve?
Unable to process payment: Creating a Checkout session in testmode without an existing customer is not supported while using Accounts V2. Please use a Sandbox, rather than testmode, for testing Checkout
unless i want to go throught he mind-numbing ordeal of manually creating everytihng in test mode again in a sandbox
Not really, the problem is that to solve it, I have to create a sandbox. And that will take hours, because I have to make all the things in 'test mode' into the new sand box.
Since there's no way to just migrate everything from 'test mode' to a new sandbox. Or (most sensibly) simply morph 'test mode' into a sandbox (<--- the stripe UI indicates this has already happened, but when I check the keys, they're unchanged, indicating it probably hasn't happened - and the presence of the error message also indidcates so)
Thanks for the context. Are you able to try again without passing an existing customer?
I think you mean with an existing customer
The problem is, that will require changing (all) tests, to create some random dummy customer before creating a checkout session.
I guess I could do that. Sorta stupid, extra code bloat, code changes, etc etc
Yes, I mean existing customer.
And it doesn't make intuitive sense either, since if you go to a SaaS and click 'subscribe' and go to stripe, you aren't a customer yet, so it's just weird that stripe API requires that, whereas it didn't before. Either way, both options suck, and involve a lot of work. Whereas the smart option (stripe simply allowing a sandbox to be created based on data in 'test mode' isn't an available option).
Did you just force this requirement overnight?
Because my tests passed yesterday, and failed this morning.
Depends on what test framework you use, there's usually a before hook where you can write the customer creation logic which will runs once before each individual test
My guess is this will affect possibly about 50% of your customers (well, 50% of those who use stripe subscriptions and have automated tests)
I hear your concern and I'll feed back this to the product team.
Probably days of work, code bloat, etc. Probably easier to just manually re-create everything in a 'sandbox'. Ugh...
Really sorry about the incovinience. I'll let product team know about your experience and prevent future breaking changes like this.
Boggles the mind why a sandbox would be created off 'live' account, but not off 'test mode'. Test mode is (as it sounds) the mode that users utilise for testing, which is exactly what the sandbox is.
That's okay.
I guess I'll just re-create everythign I had in test mode in a sandbox.
Just hours of my afternoon vaporized!
Good bye gym and swim, hello mindless copy/past. Ugh...
The breaking change isn't the problem either, i understand the switchover has to happen at some stage. The problem is the lack of ease of getting set up with a sandbox.
FYI I'm also unsure about the blast radius. Since I'm going to now have to create a bunch of new connected accounts, I have no idea how many other parts of my test/dev setups were relying on the old ones, and where to update them. Total PITA.
Let me check if there's a way to move data from test mode to sandbox easily
Okay. I don't think there is but appreciate you checking
Tbh i think copying from 'live' account doesn't copy over connected accounts anyway. So even if there was an option to copy from 'test mode' (as I've suggested), I'd guess it wouldn't move across things like connected accounts anyway. That's where most the work is, because to set up a connected account to test with, you have to do it manually, use a real phone number and email never previously used by anyone for setting up a stripe account etc.
I think i'm just going to cancel afternoon plans and re-create everything manually in a sandbox. FYI the single biggest take away from this is if stripe can automatically make 'test mode' into a sandbox, that would be ideal Then the user just clicks in a slightly different place in the UI but everything stays the same (as a bonus, they even get to use sandboxes without the effort of having to create one, as it's already set up for them based on their test mode setup)
https://support.stripe.com/contact/email?topic=migrations there's data migration request form that you may consider using, you can tell data migration team that you want to migrate data from test mode to a sandbox in your account
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
thanks.
I'll try to set it up manually. Just have to create new connected accounts in 'sandbox', and update about 100 places in the application code (tests, documentation), update keys, and update saved browser credentials (i.e. for development). Total PITA but should be doable in an afternoon. That's if I've estimated the work correctly (there may be more I haven't discovered yet).
All this work for no additional benefits is... deflating.
In any case, thanks for the help.
If you have lots of data, needs to move data for many different Stripe accounts, the data migration team will be able to help you accordingly.
Again, really sorry for the experience, it's not something we want Stripe developers to experience. I'll bring your feedback to the product team and prevent similar problem happens in the future.
Yeah, there's more. Gotta re-create all the products/prices (and with precision accuracy) in 'sandbox'. This is a clusterf*ck since I don't recall exactly how to set them up, but I do know they have to be precisely correct otherwise they won't work as intended.
Misterable stuff!
Stripe should make an option in the UI to 'Migrate Test Mode to SandBox' (i.e. 'This will move your test mode data to sandbox, This is irreversable. Continue?').
That way it's all done automatically. Doing it manually is going to take hours IF it's absolutely nailed first time, which it won't be.
I understand the frustration but Iโd like to remind using appropriate language in this discord channel. Thanks for the understanding. In this case Iโd recommend reaching out the data migration team and ask them to help you migrate the data from test mode to sandbox
Lol. I literally stared out the profanity, and I outright didn't say 9/10ths the profanity I want to. Don't tell me how to speak!
Don't worry about my feedback.
Could delight your customers and make you WAY less unpopular. But you focus on language ๐
Your incentives aren't aligned with your organisation's. Yours are to tell customers how they should speak, despite how crippling your org's been to their productivity. But your org's best off finding opportunities to create value for customers and charging for it. Very different. I was immesely helpful in alerting you to the latter. But you want to focus on language.
I'd tell you what I think of that, but you may not find that "appropriate". ๐