#ggmghoul
1 messages · Page 1 of 1 (latest)
hello yes ofc
stripe.PaymentLink.create(line_items=[{"price": "price_1MHMbwHrKMzhnGvg9Tgzq2Zq","quantity": 1,},],)
Is this Python? And if so, which version of stripe-python are you using?
PaymentLink support was added in version 2.65.0
https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md#2650---2022-01-20
So you need to udpate your version to be able to create Payment Links.
well i already have this info in front of me i figured out i ask first xD
thank you so much
Happy to help 🙂
one more thing if i may
Sure!
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 ?
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.
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
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.
i'm already listening only to 4 events xD