#sudipta_api

1 messages ยท Page 1 of 1 (latest)

novel hollyBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tropic bay
#

Hello what language and stripe library version are you using here?

#

Looks like Python potentially?

dusky wedge
tropic bay
#

Yep that would be it. The expire method was added in 2.62.0

dusky wedge
#

Okay. I will upgrade

#

Thanks

#

I hope it does not mess up my other stripe calls. ๐Ÿ˜Š

tropic bay
#

If you upgrade to 2.62.0 specifically, that shouldn't mess up existing code because it is only a minor version change. So it may be easier to do that before making a bigger upgrade

dusky wedge
#

OK

#

With 2.62.0 it worked. Thanks. However, it seems Strope has moved on pretty significantly. I am using a stripe hosted checkout session flow with no webhooks. What methodology/flow would you suggest, if I want to upgrade tp v10.n.n? Can you point me to some documentation that gives me a quick start type of instruction? Thanks a lot for your help.

#

Also I had a question regarding 'Cancel' operation. If a user clicks the <- button on the checkout page, it goes to the cancel URL, however stripe.PaymentIntent.retrieve( payment_intent_id) does not return 'cancel' status.

novel hollyBOT
tropic bay
#

We have some migration guides for Stripe python for syntax changes on the way to the newer library. https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v8-(StripeClient)
I am not sure if you would need to make changes to your Checkout flow itself. You can usually upgrade major API versions without needing to change anything fundamentally, but you may need to retrieve data from somewhere other than where you currently are. Can you send me the ID of a recent checkout session payment from your account? Test mode or live mode both work.

dusky wedge
#

This is a success ID

late lantern
#

๐Ÿ‘‹ taking over from Pompey

#

give me a moment to catch up

dusky wedge
#

Okay

late lantern
#

I think they were asking for an example request to check what API version you were currently on: It seems like you're on 2020-08-27

You can look at the API changelog to find breaking changes, if you're trying to upgrade the API version too - https://docs.stripe.com/upgrades

dusky wedge
#

I just upgraded to v2.62.0

late lantern
#

You've upgraded the SDK, API version is different

dusky wedge
#

This is a test mode transaction.

#

Oh, okay. How do I upgrade API version?

late lantern
#

The link I shared above walks you through it

dusky wedge
#

It says to visit "the Overview Tab in WOrkbench". When I click the 'Overview' link it takes me to my dashboard, but I don't see Overview Tab or the default API version.