@kiva/kv-shop 1.6.2 → 1.6.4
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.
|
@@ -115,13 +115,17 @@ async function depositCheckout({
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
async function trackSuccess(apollo, checkoutId, paymentType) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
try {
|
|
119
|
+
const transactionData = await getCheckoutTrackingData(
|
|
120
|
+
apollo,
|
|
121
|
+
checkoutId,
|
|
122
|
+
paymentType
|
|
123
|
+
);
|
|
124
|
+
trackTransaction(transactionData);
|
|
125
|
+
await wait(800);
|
|
126
|
+
} catch (e) {
|
|
127
|
+
console.error("Error tracking transaction", e);
|
|
128
|
+
}
|
|
125
129
|
}
|
|
126
130
|
async function executeOneTimeCheckout({
|
|
127
131
|
apollo,
|
package/dist/index.cjs
CHANGED
|
@@ -735,13 +735,17 @@ async function depositCheckout({
|
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
737
|
async function trackSuccess(apollo, checkoutId, paymentType) {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
738
|
+
try {
|
|
739
|
+
const transactionData = await getCheckoutTrackingData(
|
|
740
|
+
apollo,
|
|
741
|
+
checkoutId,
|
|
742
|
+
paymentType
|
|
743
|
+
);
|
|
744
|
+
(0, import_kv_analytics.trackTransaction)(transactionData);
|
|
745
|
+
await wait(800);
|
|
746
|
+
} catch (e) {
|
|
747
|
+
console.error("Error tracking transaction", e);
|
|
748
|
+
}
|
|
745
749
|
}
|
|
746
750
|
async function executeOneTimeCheckout({
|
|
747
751
|
apollo,
|
package/dist/index.js
CHANGED
package/dist/oneTimeCheckout.cjs
CHANGED
|
@@ -548,13 +548,17 @@ async function depositCheckout({
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
async function trackSuccess(apollo, checkoutId, paymentType) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
551
|
+
try {
|
|
552
|
+
const transactionData = await getCheckoutTrackingData(
|
|
553
|
+
apollo,
|
|
554
|
+
checkoutId,
|
|
555
|
+
paymentType
|
|
556
|
+
);
|
|
557
|
+
(0, import_kv_analytics.trackTransaction)(transactionData);
|
|
558
|
+
await wait(800);
|
|
559
|
+
} catch (e) {
|
|
560
|
+
console.error("Error tracking transaction", e);
|
|
561
|
+
}
|
|
558
562
|
}
|
|
559
563
|
async function executeOneTimeCheckout({
|
|
560
564
|
apollo,
|
package/dist/oneTimeCheckout.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-shop",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@apollo/client": "^3.7.14",
|
|
41
41
|
"@kiva/kv-analytics": "^1.3.0",
|
|
42
|
-
"@kiva/kv-components": "^3.48.
|
|
42
|
+
"@kiva/kv-components": "^3.48.2",
|
|
43
43
|
"@types/braintree-web-drop-in": "^1.34.2",
|
|
44
44
|
"braintree-web-drop-in": "^1.37.0",
|
|
45
45
|
"numeral": "^2.0.6",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"optional": true
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "992d943a0e3a39d8bb33162c1e059d295266c933"
|
|
58
58
|
}
|