Skip to content

Commit b761ddc

Browse files
author
Ian Walter
committed
Adding whip-billing and whip-stripe
1 parent 8927126 commit b761ddc

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

packages/whip-billing/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import prisma from '@generates/whip-prisma'
2+
import stripe from '@generates/whip-stripe'
3+
4+
export default function billingPlugin (app, opts) {
5+
}

packages/whip-billing/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@generates/whip-billing",
3+
"license": "UNLICENSED"
4+
}

packages/whip-stripe/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import stripe from 'stripe'
2+
3+
export default function redisPlugin (app, opts) {
4+
app.redis = stripe(opts)
5+
app.use(function stripeMiddleware (req, res, next) {
6+
req.stripe = app.stripe
7+
next()
8+
})
9+
}

0 commit comments

Comments
 (0)