Skip to content

Debug app to show different billing_reason on invoice events with Stripe API version 2018-10-31

Notifications You must be signed in to change notification settings

prismaticd/stripe_invoice_bug_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Debug app to show different billing_reason on invoice events with Stripe API version 2018-10-31

Relates to dj-stripe/dj-stripe#758

Installation:

  • (recommended) create a new python virtualenv (tested with python 2.7 and 3.6)
  • pip install -r requirements.txt

Example:

  1. Start app with:
STRIPE_API_KEY=sk_test_YOURSECRETKEY python app.py
  1. Create a webhook on stripe dashboard pointing at local 127.0.0.1:5000/stripe/webhook/ (eg via an ngrok tunnel)
  2. Create a subscription via the stripe dashboard
  3. Observe logging in console - billing_reason is different for a given event id when recieved as a webhook vs retrieving the same event from the API.

About

Debug app to show different billing_reason on invoice events with Stripe API version 2018-10-31

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages