Links

Get charges

Tags: #stripe #charges #snippet #operations #dataframe
Author: Martin Donadieu
Description: This notebook provides an overview of Stripe charges and their associated data.

Input

Import libraries

try:
import stripe
except:
!pip install stripe
import stripe
import pandas as pd
api_key = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"

Model

Connect to the API

stripe.api_key = api_key
charges = stripe.Charge.list(limit=30)

Output

Display result

pd.DataFrame(charges.get("data"))