You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-2Lines changed: 30 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,41 @@
1
1
# Simple Python Wrapper for Stripe
2
2
3
-
This minimal library pulls the products from Stripe in [JSON format](./products.json) using `STRIPE_API_KEY` as input, loaded from environment.
3
+
This minimal library pulls the products from Stripe in [JSON format](https://github.com/app-generator/ecomm-wrapper-stripe/blob/main/products.json) using `STRIPE_API_KEY` as input, loaded from environment.
4
4
5
5
<br />
6
6
7
7
## Quick Start
8
8
9
9
<br />
10
10
11
+
> **Install the package** via `PIP`
12
+
13
+
```bash
14
+
$ pip install python-stripe
15
+
```
16
+
17
+
<br />
18
+
19
+
> **Usage in code**
20
+
21
+
```python
22
+
23
+
from stripe_python import get_products
24
+
25
+
STRIPE_KEY='YOUR_key_here'# mandatory parameter
26
+
OUTPUT_FILE='products.json'# optional
27
+
28
+
get_products( STRIPE_KEY, OUTPUT_FILE )
29
+
```
30
+
31
+
All products associated with the account are pulled in `products.json`.
32
+
33
+
<br />
34
+
35
+
## Standalone Execution
36
+
37
+
<br />
38
+
11
39
> **Step 1** - Create `.env` using provided `env.sample`
12
40
13
41
Add `.env` file in your projects root directory and add the following credentials
@@ -52,4 +80,4 @@ The products are saved in `products.json`. Available props:
52
80
<br />
53
81
54
82
---
55
-
**Python Warpper for Stripe** - Free library provided by [AppSeed](https://appseed.us).
83
+
**Simple Python Wrapper for Stripe** - Free library provided by [AppSeed](https://appseed.us).
0 commit comments