#GazalaM
1 messages ยท Page 1 of 1 (latest)
Have you tried stripe-python? https://github.com/stripe/stripe-python
Hi ynnoj, that would be better but currently our project just uses HTTP calls to stripe. ๐ฆ
As a short term fix, would I be able to use this library just to format my data structures?
I don't believe so, no
I'd imagine there's some third-party lib out there that will handle the data serialising you need (not overly familiar with Python)
Alrght, thanks! How would we do it using stripe-python? I can pitch it to my team to migrate ๐
Depends which API request you're making, I guess: https://stripe.com/docs/api/invoiceitems/create?lang=python
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The example is very sparse, and doesn't show how nested data (like the period, metadata and tax_rates) would look like:
stripe.InvoiceItem.create( customer="cus_MRFTuqXUGJJHGE", price="price_1LiL13HfRoBp5g8KCRGDOdvQ", )