diff --git a/app/main/payments.py b/app/main/payments.py index b2ea76f..946d2ea 100644 --- a/app/main/payments.py +++ b/app/main/payments.py @@ -140,6 +140,7 @@ def sanatizeRequest(payments_request): del payments_request['houseNumberOrName'] del payments_request['postalCode'] del payments_request['street'] + del payments_request['stateOrProvince'] diff --git a/app/static/js/adyen-implementation.js b/app/static/js/adyen-implementation.js index 1b34464..c0fa680 100644 --- a/app/static/js/adyen-implementation.js +++ b/app/static/js/adyen-implementation.js @@ -1,13 +1,7 @@ const clientKey = JSON.parse(document.getElementById("client-key").innerHTML) const storedCountry = document.getElementById("country-code") -const currentPM = document.getElementById("pay-methods") -// Used to retrieve country value from url -const urlCountryParams = new URLSearchParams(window.location.search) -const countryURL = urlCountryParams.get("country") -console.log(countryURL) - /** * Global configuration variables * @param {HTMLHtmlElement} r - Identifies root of document for css variables @@ -299,10 +293,6 @@ if (storedCountry) { const selectedCountry = JSON.parse(storedCountry.innerHTML) countrySettings = getCountryData(selectedCountry) } -if (countryURL) { - const selectedCountry = countryURL - countrySettings = getCountryData(selectedCountry) -} function getCountryData(countrySettings) { return countryVariables.find(