@economist/web-apple-pay 0.1.3-beta.4 → 0.1.3-beta.5
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.
- package/dist/index.js +2 -2
- package/dist/src/apple-pay-button.js +2 -2
- package/dist/src/apple-pay-button.stories.js +2 -2
- package/dist/src/apple-pay-modal.stories.js +2 -2
- package/dist/src/clients/payment-checkout/index.js +1 -1
- package/dist/src/clients/payment-checkout/payment-handler.js +2 -2
- package/dist/src/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -556,7 +556,7 @@ var validateAppleMerchant = (data) => {
|
|
|
556
556
|
});
|
|
557
557
|
};
|
|
558
558
|
var performPurchase = (data) => {
|
|
559
|
-
console.
|
|
559
|
+
console.log("[web-apple-pay] performPurchase request", JSON.stringify(data, null, 2));
|
|
560
560
|
return apiFetch("/v1/wallet/purchase", {
|
|
561
561
|
method: "POST",
|
|
562
562
|
body: JSON.stringify(data),
|
|
@@ -989,7 +989,7 @@ async function handlePaymentAuthorized(event, session, sessionData, config) {
|
|
|
989
989
|
sessionData,
|
|
990
990
|
config.supportedBillingCountries
|
|
991
991
|
);
|
|
992
|
-
console.
|
|
992
|
+
console.log("[web-apple-pay] performPurchase currency", { skuId, currency: config.currency });
|
|
993
993
|
const result = await performPurchase({
|
|
994
994
|
applePayToken: event.payment.token,
|
|
995
995
|
skuId: config.skuId,
|
|
@@ -551,7 +551,7 @@ var validateAppleMerchant = (data) => {
|
|
|
551
551
|
});
|
|
552
552
|
};
|
|
553
553
|
var performPurchase = (data) => {
|
|
554
|
-
console.
|
|
554
|
+
console.log("[web-apple-pay] performPurchase request", JSON.stringify(data, null, 2));
|
|
555
555
|
return apiFetch("/v1/wallet/purchase", {
|
|
556
556
|
method: "POST",
|
|
557
557
|
body: JSON.stringify(data),
|
|
@@ -984,7 +984,7 @@ async function handlePaymentAuthorized(event, session, sessionData, config) {
|
|
|
984
984
|
sessionData,
|
|
985
985
|
config.supportedBillingCountries
|
|
986
986
|
);
|
|
987
|
-
console.
|
|
987
|
+
console.log("[web-apple-pay] performPurchase currency", { skuId, currency: config.currency });
|
|
988
988
|
const result = await performPurchase({
|
|
989
989
|
applePayToken: event.payment.token,
|
|
990
990
|
skuId: config.skuId,
|
|
@@ -559,7 +559,7 @@ var validateAppleMerchant = (data) => {
|
|
|
559
559
|
});
|
|
560
560
|
};
|
|
561
561
|
var performPurchase = (data) => {
|
|
562
|
-
console.
|
|
562
|
+
console.log("[web-apple-pay] performPurchase request", JSON.stringify(data, null, 2));
|
|
563
563
|
return apiFetch("/v1/wallet/purchase", {
|
|
564
564
|
method: "POST",
|
|
565
565
|
body: JSON.stringify(data),
|
|
@@ -992,7 +992,7 @@ async function handlePaymentAuthorized(event, session, sessionData, config) {
|
|
|
992
992
|
sessionData,
|
|
993
993
|
config.supportedBillingCountries
|
|
994
994
|
);
|
|
995
|
-
console.
|
|
995
|
+
console.log("[web-apple-pay] performPurchase currency", { skuId, currency: config.currency });
|
|
996
996
|
const result = await performPurchase({
|
|
997
997
|
applePayToken: event.payment.token,
|
|
998
998
|
skuId: config.skuId,
|
|
@@ -551,7 +551,7 @@ var validateAppleMerchant = (data) => {
|
|
|
551
551
|
});
|
|
552
552
|
};
|
|
553
553
|
var performPurchase = (data) => {
|
|
554
|
-
console.
|
|
554
|
+
console.log("[web-apple-pay] performPurchase request", JSON.stringify(data, null, 2));
|
|
555
555
|
return apiFetch("/v1/wallet/purchase", {
|
|
556
556
|
method: "POST",
|
|
557
557
|
body: JSON.stringify(data),
|
|
@@ -984,7 +984,7 @@ async function handlePaymentAuthorized(event, session, sessionData, config) {
|
|
|
984
984
|
sessionData,
|
|
985
985
|
config.supportedBillingCountries
|
|
986
986
|
);
|
|
987
|
-
console.
|
|
987
|
+
console.log("[web-apple-pay] performPurchase currency", { skuId, currency: config.currency });
|
|
988
988
|
const result = await performPurchase({
|
|
989
989
|
applePayToken: event.payment.token,
|
|
990
990
|
skuId: config.skuId,
|
|
@@ -69,7 +69,7 @@ var validateAppleMerchant = (data) => {
|
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
71
|
var performPurchase = (data) => {
|
|
72
|
-
console.
|
|
72
|
+
console.log("[web-apple-pay] performPurchase request", JSON.stringify(data, null, 2));
|
|
73
73
|
return apiFetch("/v1/wallet/purchase", {
|
|
74
74
|
method: "POST",
|
|
75
75
|
body: JSON.stringify(data),
|
|
@@ -55,7 +55,7 @@ var apiFetch = async (path, options = {}) => {
|
|
|
55
55
|
return response.json();
|
|
56
56
|
};
|
|
57
57
|
var performPurchase = (data) => {
|
|
58
|
-
console.
|
|
58
|
+
console.log("[web-apple-pay] performPurchase request", JSON.stringify(data, null, 2));
|
|
59
59
|
return apiFetch("/v1/wallet/purchase", {
|
|
60
60
|
method: "POST",
|
|
61
61
|
body: JSON.stringify(data),
|
|
@@ -336,7 +336,7 @@ async function handlePaymentAuthorized(event, session, sessionData, config) {
|
|
|
336
336
|
sessionData,
|
|
337
337
|
config.supportedBillingCountries
|
|
338
338
|
);
|
|
339
|
-
console.
|
|
339
|
+
console.log("[web-apple-pay] performPurchase currency", { skuId, currency: config.currency });
|
|
340
340
|
const result = await performPurchase({
|
|
341
341
|
applePayToken: event.payment.token,
|
|
342
342
|
skuId: config.skuId,
|
package/dist/src/index.js
CHANGED
|
@@ -556,7 +556,7 @@ var validateAppleMerchant = (data) => {
|
|
|
556
556
|
});
|
|
557
557
|
};
|
|
558
558
|
var performPurchase = (data) => {
|
|
559
|
-
console.
|
|
559
|
+
console.log("[web-apple-pay] performPurchase request", JSON.stringify(data, null, 2));
|
|
560
560
|
return apiFetch("/v1/wallet/purchase", {
|
|
561
561
|
method: "POST",
|
|
562
562
|
body: JSON.stringify(data),
|
|
@@ -989,7 +989,7 @@ async function handlePaymentAuthorized(event, session, sessionData, config) {
|
|
|
989
989
|
sessionData,
|
|
990
990
|
config.supportedBillingCountries
|
|
991
991
|
);
|
|
992
|
-
console.
|
|
992
|
+
console.log("[web-apple-pay] performPurchase currency", { skuId, currency: config.currency });
|
|
993
993
|
const result = await performPurchase({
|
|
994
994
|
applePayToken: event.payment.token,
|
|
995
995
|
skuId: config.skuId,
|
package/package.json
CHANGED