|
|
@ -2252,7 +2252,32 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.init.enable_International_card = true;
|
|
|
|
$scope.init.enable_International_card = true;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/payment_card_permission', {allow: $scope.paymentInfo.enable_international_card}).then(function () {
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/payment_card_permission', {
|
|
|
|
|
|
|
|
key: 'enable_international_card',
|
|
|
|
|
|
|
|
allow: $scope.paymentInfo.enable_international_card
|
|
|
|
|
|
|
|
}).then(function () {
|
|
|
|
|
|
|
|
$scope.loadPartnerPaymentInfo();
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
|
|
|
title: 'failed to change international card permission status',
|
|
|
|
|
|
|
|
content: resp.data.message,
|
|
|
|
|
|
|
|
type: 'error'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.switchThreeDS = function () {
|
|
|
|
|
|
|
|
if (!$scope.paymentInfo) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!$scope.init.enable_threeds) {
|
|
|
|
|
|
|
|
$scope.init.enable_threeds = true;
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/payment_card_permission', {
|
|
|
|
|
|
|
|
allow: $scope.paymentInfo.enable_threeds,
|
|
|
|
|
|
|
|
'key': 'enable_threeds'
|
|
|
|
|
|
|
|
}).then(function () {
|
|
|
|
$scope.loadPartnerPaymentInfo();
|
|
|
|
$scope.loadPartnerPaymentInfo();
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
commonDialog.alert({
|
|
|
|
commonDialog.alert({
|
|
|
|