Hi,
Using current Payplans 4.0.11, on the checkout page, if a user enter a coupon code and then press Enter, the checkout form is submitted immediately and they go to Paypal or Stripe without having even the coupon applied. All the rest of the form is submitted without them having a chance to enter their details, etc
This is a bug that actually existed in PP 3.x (we reported it) which is why we tested for it.
In PP 3.x, we added the following code to fix the problem and turn Enter key equivalent to clicking the Apply button:
$(document).ready(function() {
$("#app_discount_code_id").keydown(function (event) {
if (event.keyCode == 13) {
event.preventDefault();
$("#app_discount_code_submit").click();
}
});
});
Please be kind to address the issue. I'm sure we can still add and adjust this custom code but it should not be required.
Best regards