Skip to content

Commit 0cc8108

Browse files
committed
Add instructions for creating Stripe plans
1 parent 302aeff commit 0cc8108

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ If you're running Windows, [here's a guide written by one of our members on how
174174

175175
You'll need to set up a test account with Stripe for local development until this dependency is refactored out of development/test.
176176

177+
See [docs/configuration.md](https://github.com/assemblymade/coderwall/blob/master/docs/configuration.md#stripe) for more.
178+
177179
## Github configuration
178180

179181
You will need a Github application configured for local development until this dependency is refactored out of development/test.

docs/configuration.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ GITHUB_SECRET
1515

1616
### Stripe
1717
A stripe testing account may be freely signed up for over at [dashboard.stripe.com/register](https://dashboard.stripe.com/register). By default your account will be set to testing mode, unless you choice to activate it. Once your account is created your going to want to create the following plans to match what coderwall currently provides, as defined below. Finally [dashboard.stripe.com/account/apikeys](https://dashboard.stripe.com/account/apikeys) will provide test keys for you to use.
18-
```
19-
# TODO: Provide Plan Details
20-
```
2118

22-
```
23-
STRIPE_PUBLISHABLE_KEY
24-
STRIPE_SECRET_KEY
25-
```
19+
Set your `STRIPE_PUBLISHABLE_KEY` and `STRIPE_SECRET_KEY` in the `.env` file.
20+
21+
You will also need to create the recurring billing plans on Stripe. You can do this by hand (e.g. in the Stripe admin dashboard), or via the rails console. Use `vagrant ssh` to connect to the Rails console, and issue the following command:
22+
23+
`Plan.all.each { |p| p.register_on_stripe }`

0 commit comments

Comments
 (0)