This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Boom = require('boom'); | |
const BaseController = require('../../core/abstract/BaseApiController'); | |
class UsersController extends BaseController { | |
constructor(...args) { | |
super(...args); | |
this.User = this.server.plugins.users.User; | |
this.UserService = this.server.plugins.users.UserService; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Stripe = require('stripe'); | |
const Promise = require('bluebird'); | |
class StripeService { | |
constructor(server) { | |
this.server = server; | |
this.logger = server.plugins.core.LoggerService.tagged('StripeService'); | |
const secretKey = this.server.app.config.get('/payments/stripe/secretKey'); | |
if (!secretKey) { |
OlderNewer