@funnelsgrove/payments 0.70.0 → 0.72.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PAYMENTS_PACKAGE_VERSION = "0.
|
|
1
|
+
export declare const PAYMENTS_PACKAGE_VERSION = "0.72.0";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/generate-package-version.mjs.
|
|
2
|
-
export const PAYMENTS_PACKAGE_VERSION = "0.
|
|
2
|
+
export const PAYMENTS_PACKAGE_VERSION = "0.72.0";
|
|
@@ -404,6 +404,11 @@ function MethodForm({ blockId, checkoutAnalytics, checkoutSessionId, copy, count
|
|
|
404
404
|
await (onPaymentInfoSubmitted === null || onPaymentInfoSubmitted === void 0 ? void 0 : onPaymentInfoSubmitted());
|
|
405
405
|
}
|
|
406
406
|
const result = await checkout.confirm({ redirect: 'if_required' });
|
|
407
|
+
// CHECKOUT-BR-010: closing the Pix QR code leaves the payment awaiting the scan; it is not a failure.
|
|
408
|
+
if (result.type === 'error' && method === 'pix' && result.error.code !== 'paymentFailed') {
|
|
409
|
+
stopSubmitting();
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
407
412
|
if (result.type === 'error' && !isStripeCheckoutAlreadyPaidError(result.error)) {
|
|
408
413
|
const message = result.error.message || copy.paymentFailed;
|
|
409
414
|
showError(message, normalizeStripeCheckoutError(message, result.error, method));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnelsgrove/payments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"jsdom": "20.0.3",
|
|
47
47
|
"typescript": "^5",
|
|
48
48
|
"vitest": "^3.2.4",
|
|
49
|
-
"@funnelsgrove/runtime": "0.
|
|
50
|
-
"@funnelsgrove/analytics": "0.
|
|
49
|
+
"@funnelsgrove/runtime": "0.45.0",
|
|
50
|
+
"@funnelsgrove/analytics": "0.28.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@funnelsgrove/runtime": "^0.
|
|
54
|
-
"@funnelsgrove/analytics": "^0.
|
|
53
|
+
"@funnelsgrove/runtime": "^0.45.0",
|
|
54
|
+
"@funnelsgrove/analytics": "^0.28.0"
|
|
55
55
|
}
|
|
56
56
|
}
|