#jakeb_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/1376966879335288864
๐ 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.
- jakeb_api, 3 days ago, 22 messages
This is the code in question:
$invoice = $client->invoices->upcoming(
[
'subscription' => $subscription->id,
'subscription_details' => [
'items' => [$newPlanDetails],
'proration_date' => $startDate,
'proration_behavior' => 'always_invoice'
],
],
[
'stripe_account' => $company->getStripeAccountId()
]
);
additional details are in the thread from the chat on Friday, which appears to have been linked above
Wow, that ... is not a useful piece of documentation at all. ๐
This is the new way: https://docs.stripe.com/api/invoices/create_preview
I did see that new endpoint, however, I'm not sure it's available on our API version, and the current endpoint should still work since we were using it previously without issue and have not changed the API version
If the only way to get it working is to upgrade to the newer API version and start using that endpoint we can, but would prefer to not potentialy break other API calls we're making ๐
... recently started timing out ...
Can you find an example in your Stripe Dashboard and share the Request ID with me? I only need the ID, not the link.
I checked that when I made the other thread last week, they don't show up, and I never get a response so am not able to get one from the response headers either ๐ฆ
I've upgraded the PHP library to 17.2.0 and have attempted to use the new endpoint with the same parameters (just to see if it'd go through or if I'd get an error), but it just times out (only code change from what I listed above is upcoming changed to createPreview
Can you share an ID from your Stripe Account so I can peek? Account ID, Request ID, Invoice ID, doesn't matter.
Sure - evt_1PIyOeDqmHlshEpcQcUzDOn1
hi! fyi i'm taking over for timebox - catching up on the thread now
So quick update here, it turns out one of the values being passed into this function is a closure that ends up triggering a loop back into the function and just goes on forever, and something within that function call tree must have changed recently causing this, and it just happened to line up with an API call that had the documentation removed, and was recently deprecated, so I think this issue is on our end, and was just hidden behind this cloud of documentation inconsistencies so I think we're good here
ooooo ok!