Use the stripe publishable key for prod in prod. Track when a user signs up for a plan.

This commit is contained in:
yackob03 2013-10-08 13:57:48 -04:00
parent 5a5ddf2c0e
commit 12e91022cc
2 changed files with 20 additions and 2 deletions

View file

@ -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 = [
{