GitHub - stripe/stripe-python: Python library for the Stripe API.

PHOTO EMBED

Wed Sep 04 2024 22:22:51 GMT+0000 (Coordinated Universal Time)

Saved by @acassell

from stripe import StripeClient

client = StripeClient("sk_test_...")

# list customers
customers = client.customers.list()

# print the first customer's email
print(customers.data[0].email)

# retrieve specific Customer
customer = client.customers.retrieve("cus_123456789")

# print that customer's email
print(customer.email)
content_copyCOPY

https://github.com/stripe/stripe-python