#nadiya_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/1338993298337042532
📝 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.
- nadiya_code, 29 minutes ago, 23 messages
Hi, can you share the request id where you see this error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_aneJCyiEdmcmvd
Hi hi! I’m going to be jumping in here; give me a moment to read back.
It lives inside invoice_settings: https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-phases-invoice_settings-days_until_due
So Phase 1 would look like this:
{
// Phase 1 :
trial_end: nextBillingDateUnix,
collection_method: 'send_invoice',
invoice_settings: {
days_until_due: 3,
}
iterations: 1,
items: [{ price: stripePriceId, metadata }],
metadata,
},
sorry, out of topic:
how to reset the clock of a customer?
is that possible from stripe dashboard?
i was testing a subscription earlier, and used to advance the time to check the recurring behaviour of an invoice
When you say 'reset', what do you mean? Like set the clock back to the beginning?
yes, back to current day. (or just remove the similation/ clock object) without deleting and recreating the same cusotmer
You can only move the clocks forward: https://docs.stripe.com/billing/testing/test-clocks/api-advanced-usage#create-clock
So you'd need to rebuild the test scenario with a new clock.