Merge branch 'stripe-webhook' into develop

This commit is contained in:
Sabe Jones
2017-03-28 16:11:13 +00:00
5 changed files with 331 additions and 4 deletions

View File

@@ -87,4 +87,14 @@ api.subscribeCancel = {
},
};
api.handleWebhooks = {
method: 'POST',
url: '/stripe/webhooks',
async handler (req, res) {
await stripePayments.handleWebhooks({requestBody: req.body});
return res.respond(200, {});
},
};
module.exports = api;