#deland_best-practices
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/1332352652285050993
π Have more to share? Add more details, code, screenshots, videos, etc. below.
π
Clone live connect express, subscription, and invoice data into test mode? I can do my best replicating with test clocks but itβs not ideal.
Yeah, you need to create all these using direct APIs, there is no such a mechanisme for cloning live data into test/sandbox
Create verified connect express accounts in test mode without manually going through the onboarding form?
You can use API completly to have a fully onboarded account but it's available for Custom Accounts
Between for e2e tests you should mock Stripe Part, your tests needs to be focused on the part you own and not external components
But it's possible to have this all set using APIs I think
I see, any drawbacks to using test clocks? I remember certain objects are deleted after test clocks are deleted? Any problems with just keeping tests clocks there without cleanup?
Between, here are the test helpers:
https://docs.stripe.com/api/test_clocks
Thanks for the e2e help! If we would rather not mock stripes part, is the only option manually creating express accounts?
Yes it's possible to keep the tests there, but curious to understand the reasoning behind? You should clean your data after each automatic tests.
We really only need to enable transfers for our plans. Meaning just accepting ToS. Can that be done thru the api or just custom?
Yes, but I think you'll probably face issues to fully onboard the connect as it requires account links and UI interaction to fill the data needed
Ahh no I was just curious about the behavior because when we manually test, we have to update our database customer ids
Maybe, I'm not sure honestly for Express Account, maybe it's worth to give it a try...
Happy to help!