Skip to content

Commit c640482

Browse files
Merge remote-tracking branch 'origin/MC-35154' into 2.3-develop-pr51
2 parents 242e8b8 + 000b016 commit c640482

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer

1 file changed

+6
-1
lines changed

app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/cc-form.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ define(
9191
})
9292
.then(function (hostedFieldsInstance) {
9393
self.hostedFieldsInstance = hostedFieldsInstance;
94-
self.isPlaceOrderActionAllowed(false);
94+
95+
if ($('#billing-address-same-as-shipping-braintree').is(':checked')) {
96+
self.isPlaceOrderActionAllowed(true);
97+
} else {
98+
self.isPlaceOrderActionAllowed(false);
99+
}
95100
self.initFormValidationEvents(hostedFieldsInstance);
96101

97102
return self.hostedFieldsInstance;

0 commit comments

Comments
 (0)