@funnelsgrove/payments 0.22.0 → 0.22.1
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.
|
@@ -64,10 +64,11 @@ export function SharedStripeCheckoutV2CheckoutSessionForm({ copy = defaultChecko
|
|
|
64
64
|
const walletAriaLabel = walletPaymentMethods
|
|
65
65
|
.map((method) => method === 'applePay' ? walletButtonLabel : 'Google Pay')
|
|
66
66
|
.join(' / ');
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
&&
|
|
67
|
+
const walletEmailReady = !emailSessionChanged && isValidEmail(initialCustomerEmail)
|
|
68
|
+
&& rejectedEmail === null && resolvedCustomerEmail === initialCustomerEmail;
|
|
69
|
+
const showWalletMethod = presentation !== 'inline' && walletEmailReady
|
|
70
|
+
&& effectiveWalletAvailable !== false && walletPaymentMethods.length > 0;
|
|
71
|
+
const effectiveSelectedMethod = showWalletMethod && selectedMethod === 'wallet' ? 'wallet' : 'card';
|
|
71
72
|
const expressCheckoutOptions = useMemo(() => {
|
|
72
73
|
return {
|
|
73
74
|
buttonHeight: 55,
|