#loaderchips_code
1 messages ยท Page 1 of 1 (latest)
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.
- loaderchips_code, 1 hour ago, 23 messages
- loaderchips_code, 3 hours ago, 7 messages
- loaderchips_best-practices, 5 days ago, 46 messages
- loaderchips_code, 5 days ago, 47 messages
๐ 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/1269971769163386880
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
What do you mean by "a header that has since been removed"?
earlier our code was like this -- if @embedded
Stripe.api_version = "2022-11-15; embedded_checkout_beta=v1"
session_params.merge!(ui_mode: 'embedded')
session_params.delete :success_url
session_params.delete :cancel_url
end
as opposed to the current version
if @embedded
session_params.merge!(ui_mode: 'embedded')
session_params.merge!(redirect_on_completion: 'never')
session_params.delete :success_url
session_params.delete :cancel_url
end
we have double checked the deployment
this header is not deployed anymore
What's the req_xxx ID that fails? Will be in the response headers or Dashboard
looking
i cant seem to find it. will it be in the connected account's log
or the platform account log
Depends on the type of Connect payments you're doing
If direct, connected account
I suspect once you find this request log you'll see that the beta version is still set in the headers
these are all the logs.
but i dont these is the correct place
if i repeat the request
What's the acct_xxx ID?
You can see the API version is still sret in that request for example...
this is our account id acct_1KmI8jAY9OACmYiw
quick question. is the the Stripe object a singleton
so if we set the API-version in some other part of the app, it will get set statically to that
can you tell me what the latest API version is. let us explicitly set that during the request
If you're using the same Stripe instance to make all requests, yes
I'm looking through our logs for the guilty request(s). Looks like there's been ~10 examples of this error today
yes that sounds accurate
this is the problematic code at a different part of codebase
it sets it to if @embedded
Stripe.api_version = "2022-11-15; embedded_checkout_beta=v1"
session_params.merge!(ui_mode: 'embedded')
session_params.delete :success_url
session_params.delete :cancel_url
end
I actually don't think there's any public/dev facing logs here as it was rejected at the initial API layer
and that gets carried over to where it should not
Basically, you need to omit that header everywhere โ it's entirely deprecated now and redundant
if we remove these lines, 1. what will the default API version 2. will that automatically take effect?
even after removing these lines, the cached value on our servers will still be Stripe.api_version = "2022-11-15; embedded_checkout_beta=v1"
It'll default to either the apiVersion you set when you initialised Stripe client, or if that's not passed the account default
Not sure what you mean? You'll need to fix that yourself I guess
for a ruby server whats the way to use the latest stripe api? upgrade to the latest gem?
I don't understand what you're asking me. Why do you need to update your client?
ok let me put my question clearly. How to set the apiVersion? Stripe.api_version = xxxx ? also whats the latest value of xxxx i can set it to
Yes: https://docs.stripe.com/api/versioning?lang=ruby
https://docs.stripe.com/upgrades
If you don't set that then the SDK will use the account default: https://github.com/stripe/stripe-ruby?tab=readme-ov-file#configuring-an-api-version
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok perfect. that helps. let us try that