Use the stripe publishable key for prod in prod. Track when a user signs up for a plan.
This commit is contained in:
parent
5a5ddf2c0e
commit
12e91022cc
2 changed files with 20 additions and 2 deletions
|
@ -36,6 +36,18 @@ quayApp = angular.module('quay', ['restangular', 'angularMoment', 'angulartics',
|
|||
return userService;
|
||||
}]);
|
||||
|
||||
$provide.factory('KeyService', ['$location', function($location) {
|
||||
var keyService = {}
|
||||
|
||||
if ($location.host() === 'quay.io') {
|
||||
keyService['stripePublishableKey'] = 'pk_live_P5wLU0vGdHnZGyKnXlFG4oiu';
|
||||
} else {
|
||||
keyService['stripePublishableKey'] = 'pk_test_uEDHANKm9CHCvVa2DLcipGRh';
|
||||
}
|
||||
|
||||
return keyService;
|
||||
}]);
|
||||
|
||||
$provide.factory('PlanService', [function() {
|
||||
var plans = [
|
||||
{
|
||||
|
|
Reference in a new issue