@economist/web-apple-pay 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1752,6 +1752,24 @@ var createFetchMock = (sessionResponse, sessionStatus = 200) => {
|
|
|
1752
1752
|
headers: { "content-type": "application/json" }
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
|
+
if (requestUrl.includes("/v1/wallet/payment-options/sku/")) {
|
|
1756
|
+
return new Response(
|
|
1757
|
+
JSON.stringify({
|
|
1758
|
+
options: {
|
|
1759
|
+
apple_pay: {
|
|
1760
|
+
provider: "apple-pay",
|
|
1761
|
+
settings: {
|
|
1762
|
+
supported_networks: ["visa", "masterCard", "amex"]
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}),
|
|
1767
|
+
{
|
|
1768
|
+
status: 200,
|
|
1769
|
+
headers: { "content-type": "application/json" }
|
|
1770
|
+
}
|
|
1771
|
+
);
|
|
1772
|
+
}
|
|
1755
1773
|
return new Response("Not Found", {
|
|
1756
1774
|
status: 404,
|
|
1757
1775
|
statusText: "Not Found"
|
|
@@ -32,6 +32,24 @@ var createFetchMock = (sessionResponse, sessionStatus = 200) => {
|
|
|
32
32
|
headers: { "content-type": "application/json" }
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
if (requestUrl.includes("/v1/wallet/payment-options/sku/")) {
|
|
36
|
+
return new Response(
|
|
37
|
+
JSON.stringify({
|
|
38
|
+
options: {
|
|
39
|
+
apple_pay: {
|
|
40
|
+
provider: "apple-pay",
|
|
41
|
+
settings: {
|
|
42
|
+
supported_networks: ["visa", "masterCard", "amex"]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}),
|
|
47
|
+
{
|
|
48
|
+
status: 200,
|
|
49
|
+
headers: { "content-type": "application/json" }
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
35
53
|
return new Response("Not Found", {
|
|
36
54
|
status: 404,
|
|
37
55
|
statusText: "Not Found"
|