@kiva/kv-shop 1.5.0 → 1.5.2
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.
|
@@ -137,7 +137,8 @@ async function executeOneTimeCheckout({
|
|
|
137
137
|
if (result.errors?.length) {
|
|
138
138
|
throw parseShopError(result.errors[0]);
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
const checkoutId = result.data?.checkoutStatus?.receipt?.checkoutId;
|
|
141
|
+
window.location.href = `/checkout/post-purchase?kiva_transaction_id=${checkoutId}`;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
export {
|
package/dist/index.cjs
CHANGED
|
@@ -612,7 +612,8 @@ async function executeOneTimeCheckout({
|
|
|
612
612
|
if (result.errors?.length) {
|
|
613
613
|
throw parseShopError(result.errors[0]);
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
const checkoutId = result.data?.checkoutStatus?.receipt?.checkoutId;
|
|
616
|
+
window.location.href = `/checkout/post-purchase?kiva_transaction_id=${checkoutId}`;
|
|
616
617
|
}
|
|
617
618
|
|
|
618
619
|
// src/subscriptionCheckout.ts
|
package/dist/index.js
CHANGED
package/dist/oneTimeCheckout.cjs
CHANGED
|
@@ -429,7 +429,8 @@ async function executeOneTimeCheckout({
|
|
|
429
429
|
if (result.errors?.length) {
|
|
430
430
|
throw parseShopError(result.errors[0]);
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
const checkoutId = result.data?.checkoutStatus?.receipt?.checkoutId;
|
|
433
|
+
window.location.href = `/checkout/post-purchase?kiva_transaction_id=${checkoutId}`;
|
|
433
434
|
}
|
|
434
435
|
// Annotate the CommonJS export names for ESM import in node:
|
|
435
436
|
0 && (module.exports = {
|
package/dist/oneTimeCheckout.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-shop",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@apollo/client": "^3.7.14",
|
|
41
|
-
"@kiva/kv-components": "^3.48.
|
|
41
|
+
"@kiva/kv-components": "^3.48.1",
|
|
42
42
|
"@types/braintree-web-drop-in": "^1.34.2",
|
|
43
43
|
"braintree-web-drop-in": "^1.37.0",
|
|
44
44
|
"numeral": "^2.0.6",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"optional": true
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b4fd4b1a39ead26cca9aed076f47b8ffcbc5872a"
|
|
57
57
|
}
|