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