Skip to main content

A simple lightweight api client for awesome stripe

Project description


A simple lightweight api client for awesome stripe.


import simple_stripe_client
import os
# create client
stripe_api = simple_stripe_client.Api(STRIPE_SECRET_KEY, debug_http=True)

    'amount': 15921,
    'currency': 'gbp',
    'capture' : False,
    'source': 'tok_amex',
    'metadata': {
        'first_name' : 'Sachin',
        'last_name'  : 'Tendulkar',

# Creating Charge
charge =**CHARGE_DATA)

CHARGE_ID = 'ch_xxx'
# Fetching Charge
charge =

# Update Charge
charge ='Test Update')

# Capture Charge
charge =

Building Stripe's Curl URLs

URLs would match one-to-one to stripe's curl api urls. For more links please refer to stripe doc

stripe_api.charges                                  # == /v1/charges                    # == /v1/charges/{CHARGE_ID}    

stripe_api.customers                                # == /v1/customers                # == /v1/customers/{CUSTOMER_ID}

stripe_api.invoices                                 # == /v1/invoices                  # == /v1/invoices/{INVOICE_ID}


  • Add support for Stripe Connect, Files
  • Add more extensive tests

Changelog -

0.0.2 (01-02-2019)

  • fixed issue for python 2

0.0.1 (01-02-2019)

  • initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simple-stripe-client, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size simple_stripe_client-0.0.2-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size simple_stripe_client-0.0.2.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page