Skip to content

Commit

Permalink
Change list country to US
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Schneider-Swales committed Feb 15, 2024
1 parent c7f98ae commit 93a7b70
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function setLanguageSelect() {
// Returns country value based on query parameter
function getCountry() {
const params = new URLSearchParams(window.location.search);
return (params.has("paymentOutcome") && params.get("paymentOutcome") === "abort") ? "SE" : "DE";
return (params.has("paymentOutcome") && params.get("paymentOutcome") === "abort") ? "SE" : "US";
}

// Checks query params to see if error case was selected
Expand Down Expand Up @@ -493,14 +493,18 @@ function generateList(integrationType, amount, country, language, theme) {
country: country,
customer: {
email: "[email protected]",
number: "42"
number: "42",
name: {
firstName: "John",
lastName: "Doe"
}
},
integration: integrationType,
payment: {
amount: amount,
netAmount: (amount-0.01),
taxAmount: 0.01,
currency: "EUR",
currency: "USD",
reference: "Shop 101/20-03-2016"
},
preselection: {
Expand Down

0 comments on commit 93a7b70

Please sign in to comment.