We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea236e7 commit d1ca5e5Copy full SHA for d1ca5e5
app/code/Magento/Paypal/view/frontend/web/js/in-context/button.js
@@ -24,6 +24,13 @@ define([
24
this.renderPayPalButtons(element);
25
this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
26
27
+ if (cart().isGuestCheckoutAllowed === undefined) {
28
+ cart.subscribe(function (updatedCart) {
29
+ this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
30
+ return updatedCart;
31
+ }.bind(this));
32
+ }
33
+
34
return this;
35
},
36
0 commit comments