1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

[bug] unable to set stripe public key in production

This commit is contained in:
Sylvain 2020-07-01 17:57:33 +02:00
parent 9ca64418e7
commit 956d865e4f
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,6 @@
# Changelog Fab-manager
- Fix a bug: unable to set stripe public key in production
- Fix a bug: health API is broken if ElasticSearch is not present
- Fix a bug: unable to sync members with stripe
- Fix a bug: version check is not working

View File

@ -1320,13 +1320,13 @@ Application.Controllers.controller('StripeKeysModalController', ['$scope', '$uib
/* PUBLIC SCOPE */
// public key
$scope.publicKey = stripeKeys.stripe_public_key;
$scope.publicKey = stripeKeys.stripe_public_key || '';
// test status of the public key
$scope.publicKeyStatus = undefined;
// secret key
$scope.secretKey = stripeKeys.stripe_secret_key;
$scope.secretKey = stripeKeys.stripe_secret_key || '';
// test status of the secret key
$scope.secretKeyStatus = undefined;
@ -1370,10 +1370,7 @@ Application.Controllers.controller('StripeKeysModalController', ['$scope', '$uib
'Content-Type': 'application/x-www-form-urlencoded'
},
data: $httpParamSerializerJQLike({
'card[number]': 4242424242424242,
'card[cvc]': 123,
'card[exp_month]': 12,
'card[exp_year]': today.getFullYear().toString().substring(2),
'pii[id_number]': 'test',
})
}).then(function () {
$scope.publicKeyStatus = true;