Skip to content

Commit 281dd46

Browse files
committed
update readme template example
1 parent 5b095d2 commit 281dd46

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ environment settings, a mix of either)
3535

3636
## Example usage
3737

38+
39+
### 1.
3840
In your main flask app, inside create_app
3941

4042
```
@@ -78,13 +80,29 @@ your existing flask application. This makes `flask_saas` flexibily and (hopefull
7880
eaiser to integrate with your existing application/database or object store.
7981

8082
For example, to implement `get_stripe_secret_key`, if your flask application stores
81-
your Stripe key as an envrionment variable called `STRIPE_SECRET_KEY`, then you might write(Before Flask_Saas):
83+
your Stripe key as an environment variable called `STRIPE_SECRET_KEY`, then you might write (before `Flask_Saas` instantiation):
8284

8385
```
8486
def get_stripe_secret_key():
8587
return os.getenv("STRIPE_SECRET_KEY")
8688
```
8789

90+
### 2. Create link to Stripe connect onboarding
91+
92+
93+
In your flask application, create a link to the route `stripe-connect.index` to start the Stripe onboarding process.
94+
95+
For example: create a template called `stripe-connect.html`, and write:
96+
```
97+
{% extends "layout.html" %}
98+
{% block body %}
99+
<h2>Connect to Stripe</h2>
100+
<a href="{{ url_for('stripe_connect.index') }}">Connect to Stripe</a>
101+
{% endblock %}
102+
103+
```
104+
Reload your application, and you should see a link to stripe-connect.
105+
88106
## Building / Development
89107

90108
```

0 commit comments

Comments
 (0)