// SCRIPT FOR "payment-method-selector-component"
var timer = setInterval(function() {
if(document.getElementById('payment-methods-list')) {
clearInterval(timer);
var $scope = angular.element(document.getElementById('payment-methods-list')).scope();
if (!$scope.paymentMethods.find(method => method.name.includes('Apple'))) {
var order = ['stripe_elements', 'paypal_express_checkout'];
$scope.paymentMethods = $scope.paymentMethods.sort((a, b) => {
return order.indexOf(a.identifier) - order.indexOf(b.identifier);
});
// Setting a default payment method on desktop
$scope.selectPaymentMethod($scope.paymentMethods[0]);
} else {
$scope.selectPaymentMethod($scope.paymentMethods[0]);
}
}
}, 100);
{{user.displayName}}
{{user.email}}
{{terminalErrorHeading}}
An error has occurred
{{terminalError}}
Checkout with {{app.name}}
Choose from any one of our options below.
{{selectedTerm.name | tc:'resource.name'}}
{{!termData ? getTermCustom(selectedTerm ) : ''}}
{{selectedTerm.description}}
{{ termData[0] }}
danach
{{selectedTerm.billingPlanTable[1].totalBilling}}{{selectedTerm.billingPlanTable[0].totalBilling}}
{{ termData[1] }}
Alle Preise inklusive MwSt.
Jetzt zu bezahlender Betrag: {{input.chargeDisplayAmount}}
Rabattierter Preis: {{ input.originalChargeDisplayAmount }} {{ input.chargeDisplayAmount }} Der Rabatt kann einmalig angewendet werden.Der Rabatt wird auf die ersten {{input.promotionBillingPlan[0].cycles}} Zahlungen angewendet.
var getTermCustom = function(term) {
var scope = angular.element("#ng-app").scope();
var termData = term.description;
var splitDescription = termData.split('|||');
if (splitDescription.length > 1) {
termData = splitDescription;
scope.termData = termData;
scope.$apply();
}
};
var scope = angular.element("#ng-app").scope();
scope.getTermCustom = getTermCustom;
scope.$apply();
4 Wochen um € 6,90 € 14 Wochen um € 6,90 € 1
Lesen Sie alle Plus-Artikel auf tt.com ohne Einschränkung.