#xfechx_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/1422996629442662451
📝 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.
- xfechx_api, 1 hour ago, 5 messages
I am using this code:
$secret_key,
null, // no account override
'2023-10-16;fx_quote_preview=v1' // Stripe-Version header
);```
so not sure why it is asking me to include the version of beta
Hi, that is in Public Preview: https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api?setup=use-fx-quotes-with-sdk#setup and it requires beta install with our SDK. Have you already tried that?
no, how do I do that? I use php via composer
sorry, stripe via php composer
with this is not working:
'post',
'/v1/fx_quotes',
[
'from_currencies' => [$from],
'to_currency' => $to
],
[] // empty options
);```
In addition to the stripe object created above asking for a preview
1/ Can you ensure you run gem install stripe -v 14.0.0-beta.1 command
2/ Then pass 'stripe_version' => '2025-07-30.preview',
Ah, wrong copy paste.
composer require stripe/stripe-php:version
I think
let me confirm
name : stripe/stripe-php
descrip. : Stripe PHP Library
keywords : api, payment processing, stripe
versions : * v13.6.0
released : 2023-12-07, 1 year ago
type : library
license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://stripe.com/
Actually, since this is in Public Perview, https://github.com/stripe/stripe-php#public-preview-sdks and has not been GA-d yet, you'll need to contact support. Our support team will be able to better assist: https://support.stripe.com/contact
In general, you'd use composer require stripe/stripe-php:v 14.0.0-beta.1. Then, you pass 'stripe_version' => '2025-07-30.preview'
However, since this is not GA-d yet, you'll need to get an approval to access that
I see!
ok, I will get in touch, and then once I get approved, I can use the code I was using by passing the preview as a parameter for creating the stripe object? Then I can access fx features?
Yes, and after installing the preview SDK, you can pass that preview api version and you should get access.