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:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* 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)
|
||||
* @copyright Peter Sliacky (Zelarg)
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* Copyright (c) 2021-2022
|
||||
*/
|
||||
|
||||
// If we're in an iframe, let's do full page reload
|
||||
var confirmationInIframe = (window.self !== window.top)
|
||||
|
||||
if (confirmationInIframe) {
|
||||
window.top.location.href = window.location.href;
|
||||
}
|
||||
|
||||
@@ -31,4 +31,15 @@ if ("undefined" !== typeof amazon_ongoing_session && amazon_ongoing_session) {
|
||||
formEl.addClass('amazon-visible');
|
||||
additionalEl.addClass('amazon-visible');
|
||||
titleEl.addClass('amazon-visible');
|
||||
}
|
||||
|
||||
// Check if there's 'option' parameter in the url, if yes, let's hide everything except single payment method
|
||||
var searchParams = new URLSearchParams(window.location.search);
|
||||
var optionSet = searchParams.get('option');
|
||||
if (optionSet) {
|
||||
$('body').addClass('p3i-option-set');
|
||||
// $('[id='+optionSet+'-container]').parent('div').addClass('p3i-visible-only');
|
||||
$('[id^='+optionSet+'-]').addClass('p3i-visible-only');
|
||||
setTimeout(function() {$('[id='+optionSet+']').trigger('click');}, 200);
|
||||
$('[id^=conditions_to_approve]').prop('checked', false).trigger('click');
|
||||
}
|
||||
@@ -34,6 +34,7 @@ var tc_facebookLogin = (function () {
|
||||
|
||||
function backendSignIn(access_token) {
|
||||
$.ajax({
|
||||
url: prestashop.urls.pages.order,
|
||||
type: 'POST',
|
||||
cache: false,
|
||||
dataType: "json",
|
||||
@@ -45,8 +46,15 @@ var tc_facebookLogin = (function () {
|
||||
// TODO: better error handling
|
||||
console.error(jsonData.errors);
|
||||
} else if ('undefined' !== typeof jsonData.email && jsonData.email) {
|
||||
signedInUpdateForm();
|
||||
location.reload();
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
if(jqXHR.status === 500) {
|
||||
console.error("Internal server error occurred: ", errorThrown);
|
||||
// Add any additional error handling logic here
|
||||
}
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -132,6 +140,13 @@ var tc_googleLogin = (function () {
|
||||
} else if ('undefined' !== typeof jsonData.email && jsonData.email) {
|
||||
location.reload();
|
||||
}
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
if(jqXHR.status === 500) {
|
||||
console.error("Internal server error occurred: ", errorThrown);
|
||||
// Add any additional error handling logic here
|
||||
}
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user