mirror of
https://github.com/jlengrand/checkoutCreate.git
synced 2026-03-10 08:11:18 +00:00
fixed bug - US payments had extra field stateOrProvince
This commit is contained in:
@@ -140,6 +140,7 @@ def sanatizeRequest(payments_request):
|
||||
del payments_request['houseNumberOrName']
|
||||
del payments_request['postalCode']
|
||||
del payments_request['street']
|
||||
del payments_request['stateOrProvince']
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user