stripe-python
stripe-python copied to clipboard
Python library for the Stripe API.
I'd really like to instantiate a stripe "client" object with appropriate configuration (api_key, stripe_account, http_client) and call methods on it (e.g. `client.charge.list()` rather than `stripe.Charge.list()`) to load resources. The current...
It may be useful to provide constant definitions for the enum values in the API, as we do for [stripe-php](https://github.com/stripe/stripe-php). See #688 for an example of what this might look...
In light of #533, I think it might be useful to have a smoke test for testing the thread safety of our clients. This PR adds a test to check...
`auto_paging_iter` in conjunction with `ending_before` param reverses the order of `list` resource
Python Version: 3.7.2 Stripe Lib Version: 2.41.0 Calling `auto_paging_iter()` reverses the order of the list resource: ```python In [1]: import stripe In [2]: params = { ...: 'ending_before': 'evt_xxxx', ...:...
Had to implement a way to get the Stripe dashboard URL matching a stripe object for dj-stripe/dj-stripe#465. It'd be really nice if a solution for it were in the stripe...
Codegen for openapi v196. cc @stripe/api-libraries ## Changelog * Updated stable APIs to the latest version
### Describe the bug the http request client is assigned to a global variable here: https://github.com/stripe/stripe-python/blob/1ae42227d9df745420c1a3db11893589d91ba83e/stripe/api_requestor.py#L103-L105 requests client is defined here: https://github.com/stripe/stripe-python/blob/1ae42227d9df745420c1a3db11893589d91ba83e/stripe/http_client.py#L287 the `Session` is assigned here: https://github.com/stripe/stripe-python/blob/1ae42227d9df745420c1a3db11893589d91ba83e/stripe/http_client.py#L318-L319 this `Session`...
urllib2 (python >=2.7.9) and urllib.request (python>=3.2) do validate ssl for example: ```console $ docker run --rm -ti python:2.7.8-slim python -c 'import urllib2; urllib2.urlopen("https://expired.badssl.com")' $ docker run --rm -ti python:2.7.9-slim python...
While looking over the APIRequestor, I noticed these two mistyped OAuth exception classes. Hope this helps.
We've gained access to the Gift Card beta and would like to use it but the latest tag of the stripe library (4.1.0b2) still says the `module 'stripe' has no...