We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit b9db43c3 authored by Alexander Christiaan Jacob Dekker's avatar Alexander Christiaan Jacob Dekker Committed by GitHub

Add extra check to submit button (#685)

Some webshops work with only a billing address because products need to be picked up from a location. If this is the case, the billing address should be filled in, and valid before a payment method can be used. This is already the case with payment methods native to Magento 2, but not with this Adyen module. Because of this, orders could be placed using Adyen payment methods, without adding an address at all. This extra check fixes this.

Refs #662.
Co-authored-by: default avatarcyattilakiss <42297201+cyattilakiss@users.noreply.github.com>
parent 220d6456
......@@ -303,7 +303,10 @@
<div class="primary">
<button class="action primary checkout"
type="submit"
data-bind="click: $parent.continueToAdyenBrandCode, enable: placeOrderAllowed() && (value == $parent.isBrandCodeChecked())"
data-bind="
click: $parent.continueToAdyenBrandCode,
enable: placeOrderAllowed() && (value == $parent.isBrandCodeChecked()),
css: {disabled: !$parent.isPlaceOrderActionAllowed()}"
disabled>
<span data-bind="text: $t('Place Order')"></span>
</button>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment