From 4237e709d496cde5170fd176817eadedf8fc4d78 Mon Sep 17 00:00:00 2001 From: Prathmesh Ranaut Date: Sat, 7 Jun 2025 10:02:52 -0400 Subject: [PATCH] Updated stripeclient snippets in Readme.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0a9b10f98..0b2869aee 100644 --- a/README.md +++ b/README.md @@ -51,13 +51,13 @@ from stripe import StripeClient client = StripeClient("sk_test_...") # list customers -customers = client.customers.list() +customers = client.v1.customers.list() # print the first customer's email print(customers.data[0].email) # retrieve specific Customer -customer = client.customers.retrieve("cus_123456789") +customer = client.v1.customers.retrieve("cus_123456789") # print that customer's email print(customer.email) @@ -89,7 +89,7 @@ from stripe import StripeClient client = StripeClient("sk_test_...") # list customers -client.customers.list( +client.v1.customers.list( options={ "api_key": "sk_test_...", "stripe_account": "acct_...", @@ -98,7 +98,7 @@ client.customers.list( ) # retrieve single customer -client.customers.retrieve( +client.v1.customers.retrieve( "cus_123456789", options={ "api_key": "sk_test_...", @@ -181,7 +181,7 @@ There are a few options for enabling it: You can access the HTTP response code and headers using the `last_response` property of the returned resource. ```python -customer = client.customers.retrieve( +customer = client.v1.customers.retrieve( "cus_123456789" ) @@ -288,7 +288,7 @@ with `_async`. ```python # With StripeClient client = StripeClient("sk_test_...") -customer = await client.customers.retrieve_async("cus_xyz") +customer = await client.v1.customers.retrieve_async("cus_xyz") # With global client stripe.api_key = "sk_test_..."