Add new payment and shipping parsers for various integrations
- Implemented Google Pay parser in bongooglepay.js - Added Buckaroo 3 payment parser in buckaroo3.js - Introduced DataTrans CW Mastercard parser in datatranscw.js - Created DataTrans CW Credit Card parser in datatranscw_creditcard.js - Developed DHL Assistant shipping parser in dhlassistant.js - Added Estimated Delivery parser in estimateddelivery.js - Implemented Floapay payment parser in floapay.js - Created FS Pickup at Store shipping parser in fspickupatstore.js - Developed Generic Iframe parser in generic_iframe_parser.js - Added Geodis Officiel shipping parser in geodisofficiel.js - Implemented Glob Kurier module shipping parser in globkuriermodule.js - Created Latvija Post Express Pickup Terminal parser in latvijaspastsexpresspastspostterminalslv.js - Developed LP Shipping parser in lpshipping.js - Added Mijora Venipak parser in mijoravenipak.js - Implemented Apple Pay parser in pm_applepay.js - Created Przelewy24 payment parser in przelewy24.js - Developed Pshugls shipping parser in pshugls.js - Added Redsys Insite payment parser in redsysinsite.js - Implemented Tpay payment parser in tpay.js - Updated third-party integration documentation for FedEx DotCom
This commit is contained in:
@@ -67,9 +67,9 @@ var payment = (function () {
|
||||
if (0 == $(selectedOption).length) {
|
||||
// Only now try to select by default set in checkout options
|
||||
// Changed to 'starts with' selector, e.g. paypal module has data-module-name=paypal_plus
|
||||
selectedOption = '[data-module-name^=' + config_default_payment_method + ']';
|
||||
selectedOption = '[data-module-name^=' + config_default_payment_method + ' i]';
|
||||
}
|
||||
if (0 == $(selectedOption).length) {
|
||||
if (0 == $(selectedOption).length && config_default_payment_method != '') {
|
||||
selectedOption = '.' + config_default_payment_method + ' [name=payment-option]:first';
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ var payment = (function () {
|
||||
var paymentOption = getPaymentOptionSelector(option);
|
||||
$(paymentOption).slideDown();
|
||||
if (!dont_remove_confirmation_button) {
|
||||
// self.confirmationButton.hide();
|
||||
self.confirmationButton.hide();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ var payment = (function () {
|
||||
loadPaymentPopupLibrary(function() {
|
||||
popupContainer.paymentpopup({
|
||||
onopen: function () {
|
||||
popupCallback(paymentMethodName)
|
||||
popupCallback(paymentMethodName, option)
|
||||
},
|
||||
onclose: function() {
|
||||
popupCloseCallback(paymentMethodName);
|
||||
@@ -282,11 +282,11 @@ var payment = (function () {
|
||||
}
|
||||
}
|
||||
|
||||
function popupCallback(paymentMethodName) {
|
||||
function popupCallback(paymentMethodName, optionId) {
|
||||
if ('undefined' !== typeof checkoutPaymentParser[paymentMethodName]
|
||||
&& 'undefined' !== typeof checkoutPaymentParser[paymentMethodName].popup_onopen_callback) {
|
||||
console.info('popup open callback for ' + paymentMethodName + ' called');
|
||||
checkoutPaymentParser[paymentMethodName].popup_onopen_callback();
|
||||
checkoutPaymentParser[paymentMethodName].popup_onopen_callback(optionId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user