Skip to content
Code-Schnipsel Gruppen Projekte
Commit adfd4eb2 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: add widget url for production environment #11

Übergeordneter 6c4063c1
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -80,8 +80,6 @@ define('package/quiqqer/payment-amazon/bin/controls/PaymentDisplay', [
self.$OrderProcess = OrderProcess;
if (self.getAttribute('successful')) {
console.log("payment is authorized -> next()");
OrderProcess.next();
return;
}
......@@ -97,7 +95,7 @@ define('package/quiqqer/payment-amazon/bin/controls/PaymentDisplay', [
var widgetUrl = "https://static-eu.payments-amazon.com/OffAmazonPayments/eur/sandbox/lpa/js/Widgets.js";
if (!this.getAttributes('sandbox')) {
widgetUrl = ''; // @todo LIVE widget url
widgetUrl = 'https://static-eu.payments-amazon.com/OffAmazonPayments/eur/lpa/js/Widgets.js';
}
if (typeof amazon !== 'undefined') {
......@@ -263,18 +261,19 @@ define('package/quiqqer/payment-amazon/bin/controls/PaymentDisplay', [
var PayBtnElm = this.getElm().getElement('#quiqqer-payment-amazon-btn-pay');
this.$PayBtn = new QUIButton({
disabled: true,
text : QUILocale.get(pkg, 'controls.PaymentDisplay.btn_pay.text', {
'class' : 'btn-primary',
disabled : true,
text : QUILocale.get(pkg, 'controls.PaymentDisplay.btn_pay.text', {
display_price: PayBtnElm.get('data-price')
}),
alt : QUILocale.get(pkg, 'controls.PaymentDisplay.btn_pay.title', {
alt : QUILocale.get(pkg, 'controls.PaymentDisplay.btn_pay.title', {
display_price: PayBtnElm.get('data-price')
}),
title : QUILocale.get(pkg, 'controls.PaymentDisplay.btn_pay.title', {
title : QUILocale.get(pkg, 'controls.PaymentDisplay.btn_pay.title', {
display_price: PayBtnElm.get('data-price')
}),
texticon: 'fa fa-amazon',
events : {
textimage: 'fa fa-amazon',
events : {
onClick: this.$onPayBtnClick
}
}).inject(PayBtnElm);
......@@ -316,7 +315,7 @@ define('package/quiqqer/payment-amazon/bin/controls/PaymentDisplay', [
self.$showAmazonWallet(false);
Btn.enable();
Btn.setAttribute('texticon', 'fa fa-amazon');
Btn.setAttribute('textimage', 'fa fa-amazon');
}, function (error) {
self.$OrderProcess.Loader.hide();
self.$showErrorMsg(error.getMessage());
......@@ -330,7 +329,7 @@ define('package/quiqqer/payment-amazon/bin/controls/PaymentDisplay', [
self.$showAmazonWallet(false);
Btn.enable();
Btn.setAttribute('texticon', 'fa fa-amazon');
Btn.setAttribute('textimage', 'fa fa-amazon');
return;
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren