#shreyas-mulay_api

1 messages ยท Page 1 of 1 (latest)

median elkBOT
#

๐Ÿ‘‹ 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/1372546572000165989

๐Ÿ“ 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.

sudden gull
#

Hi

halcyon plinth
#

๐Ÿ‘‹ happy to help

#

do you mean downgrade your default API version?

sudden gull
#

yes

#

Downgrade to 2020-03-02

halcyon plinth
#

unfortunately that's not possible

sudden gull
#

as of now it is at 2025-04-30.basil

halcyon plinth
#

what you can do instead is pass an explicit API version when you initialize your Stripe instance

sudden gull
#

There are some serious issues that we are facing with the current api version while createing payment intent

#
            amount: price.unit_amount,
            currency: price.currency,
            customer: customerId,
            payment_method: paymentMethodId,
            confirm: true,
            automatic_payment_methods: {
                enabled: true,
                allow_redirects: 'never'
            },
        });```
halcyon plinth
sudden gull
#

I am creating the payment intent like using the above code and it worked properly in the previous version for any type of card, but not working in the current version

halcyon plinth
#

yes in the new version you need to pass in return_url

sudden gull
#

actually I have 3 different microservices doing the job,

Web -> then node backend --> Core API web backend (where the creation is happening) , now from here return_url how I can transfer to UI

#

?

#

hence the issue

#

So if I do like this

            amount: price.unit_amount,
            currency: price.currency,
            customer: customerId,
            payment_method: paymentMethodId,
            confirm: true
        }, { apiVersion: '2020-03-02' });```
#

Will this take back the previous version rite ?

halcyon plinth
#

yes

sudden gull
#

ok

#

thanks

#

tell me one thing

#

By doing this, will this be supported for long ?

sudden gull
halcyon plinth
#

yes this will always be supported

#

our API is backwards-compatible