diff --git a/classes/payments/stripe/form.htm b/classes/payments/stripe/form.htm index eb7abbfd4..7b5ed6e64 100644 --- a/classes/payments/stripe/form.htm +++ b/classes/payments/stripe/form.htm @@ -61,7 +61,7 @@ event.preventDefault(); } var errorElement = document.getElementById('card-errors'); - errorElement.classList.remove('visible') + errorElement.classList.remove('visible', 'oc-visible') if (form) { var submit = form.querySelector('[type="submit"]') if (submit) { @@ -73,7 +73,7 @@ stripe.createToken(card).then(function (result) { if (result.error) { errorElement.textContent = result.error.message; - errorElement.classList.add('visible') + errorElement.classList.add('visible', 'oc-visible') if (submit) { submit.classList.remove('oc-loading') submit.disabled = false diff --git a/updates/version.yaml b/updates/version.yaml index 05246d529..009278336 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -594,3 +594,5 @@ v3.4.3: - 'Only create carts once a product is added' v3.4.4: - 'Fixed customer group prices compatibility with RainLab.User 3.0' +v3.4.5: + - 'Fixed Stripe errors not showing up in the checkout form'