1
0
mirror of https://github.com/bitwarden/web synced 2025-12-10 13:23:15 +00:00

radio styling

This commit is contained in:
Kyle Spearrin
2017-07-28 21:13:03 -04:00
parent f944910975
commit 04da844b22
4 changed files with 51 additions and 9 deletions

View File

@@ -45,11 +45,17 @@
$scope.submit = function () {
$scope.submitPromise = getPaymentToken($scope.card).then(function (token) {
if (!token) {
throw 'No payment token.';
}
var request = {
paymentToken: token
};
return apiService.accounts.putPayment(null, request).$promise;
}, function (err) {
throw err;
}).then(function (response) {
$scope.card = null;
if (existingPaymentMethod) {
@@ -73,6 +79,8 @@
if ($scope.paymentMethod === 'paypal') {
return btInstance.requestPaymentMethod().then(function (payload) {
return payload.nonce;
}).catch(function (err) {
throw err.message;
});
}
else {