#ggmghoul

1 messages · Page 1 of 1 (latest)

clear boltBOT
azure patio
#

Hi there!

#

Can you share your code that is throwing that error?

topaz hazel
#

hello yes ofc

#

stripe.PaymentLink.create(line_items=[{"price": "price_1MHMbwHrKMzhnGvg9Tgzq2Zq","quantity": 1,},],)

azure patio
#

Is this Python? And if so, which version of stripe-python are you using?

topaz hazel
#

yes it is

#

and i'm using 3.10 for python

#

stripe 2.64.0

azure patio
topaz hazel
#

well i already have this info in front of me i figured out i ask first xD

#

thank you so much

azure patio
#

Happy to help 🙂

topaz hazel
#

one more thing if i may

azure patio
#

Sure!

topaz hazel
#

there are no changes i shall make in my code by updating the version ? i mean the only thing that happened during this update is adding thing not modifying old ones ?

azure patio
#

Looking at the changelog, it looks like not much has changed between 2.64.0 and 2.65.0, so I guess it should work with no changes. But still I would recommend to do some tests on your end to make sure eveything works as expected.

topaz hazel
#

yes of course

#

and btw i'm having a problem with the webhook

#

is there a way to diminish the frequescy between each one ?

#

cause i'm working with sqlalchemy and if many requests are sent they interfere with the session

#

i added a sleep for 3 secondes to make things work but for me that's a temporary solution

azure patio
#

I'm not familiar with sqlalchemy, but no you cannot reduce the frequency of webhook events. Every time something happens on your account, Stripe will send you a webhook event, regardless of when the last event was sent. But you could maybe listen to less events.

topaz hazel
#

i'm already listening only to 4 events xD