Improve checkout UX (#6248)
This commit is contained in:
parent
c0ebdec392
commit
278dfe44f5
2 changed files with 9 additions and 1 deletions
|
|
@ -42,6 +42,14 @@ $(document).ready(function() {
|
|||
})
|
||||
});
|
||||
});
|
||||
|
||||
instance.on('paymentMethodRequestable', function (event) {
|
||||
button.removeAttribute('disabled');
|
||||
});
|
||||
|
||||
instance.on('noPaymentMethodRequestable', function () {
|
||||
button.setAttribute('disabled', true);
|
||||
});
|
||||
});
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<button class="btn btn-primary" type="submit" id="submit-button"><span>{{ _("Pay") }} {{ amount }} {{ currency }}</span></button>
|
||||
<button class="btn btn-primary" type="submit" id="submit-button" disabled><span>{{ _("Pay") }} {{ amount }} {{ currency }}</span></button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue