Files
wyczarujprezent.pl/modules/thecheckout/views/js/parsers/amzpayments.js
2024-10-28 22:14:22 +01:00

28 lines
891 B
JavaScript

/**
* NOTICE OF LICENSE
*
* This source file is subject to the Software License Agreement
* that is bundled with this package in the file LICENSE.txt.
*
* @author Peter Sliacky (Zelarg)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
checkoutPaymentParser.amzpayments = {
container: function (element) {
var removeSubmitBtn = true;
payment.setPopupPaymentType(element, removeSubmitBtn);
},
additionalInformation: function (element, triggerElementName) {
// 19.5.2020: from now on, payment button will be hidden with CSS and shown in popup only
// if (!payment.isConfirmationTrigger(triggerElementName)) {
// if (debug_js_controller) {
// console.info('[amzpayments] Not confirmation trigger, removing payment\'s additionalInformation div');
// }
// element.remove();
// }
}
}