#xfechx_api

1 messages · Page 1 of 1 (latest)

late lightBOT
#

👋 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.

round nova
#

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

orchid skiff
round nova
#

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
orchid skiff
#

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',

round nova
#

i don't use gem, with composer?

#

it is not ruby

#

it is php

orchid skiff
#

Ah, wrong copy paste.

composer require stripe/stripe-php:version

#

I think

#

let me confirm

round nova
#



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/

orchid skiff
#

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

round nova
#

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?

orchid skiff
#

Yes, and after installing the preview SDK, you can pass that preview api version and you should get access.

round nova
#

I am filling out support for API integration, is that the right option?

#

it sends me to a form

#

thanks for your help