#sudipta_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/1283435070966730837
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello what language and stripe library version are you using here?
Looks like Python potentially?
I definitely see an expire method in our current version of stripe-python https://github.com/stripe/stripe-python/blob/master/stripe/checkout/_session.py#L4226-L4265
Is is possible that your version is too old to have this method?
https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#2620---2021-11-11
Python:
Name: stripe
Version: 2.49.0
Summary: Python bindings for the Stripe API
Home-page: https://github.com/stripe/stripe-python
Author: Stripe
Yep that would be it. The expire method was added in 2.62.0
Okay. I will upgrade
Thanks
I hope it does not mess up my other stripe calls. ๐
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
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.
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.
Is this what you are asking for? https://dashboard.stripe.com/test/payments/pi_3PxbmwEqsWWqVV0P0ZAIux0g
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is a success ID
Okay
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
I just upgraded to v2.62.0
Pompey asked for an ID of a recent checkout session. I sent https://dashboard.stripe.com/test/payments/pi_3PxbmwEqsWWqVV0P0ZAIux0g
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You've upgraded the SDK, API version is different
The link I shared above walks you through it
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.