From 04bc066632c4d377aada9b46050a69d22e520278 Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Fri, 15 Nov 2024 09:36:02 +0100 Subject: [PATCH 1/2] Activating card details form after load if stripe card is selected --- Application/views/frontend/tpl/stripecreditcard.tpl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Application/views/frontend/tpl/stripecreditcard.tpl b/Application/views/frontend/tpl/stripecreditcard.tpl index 79bd8aa..8547bff 100644 --- a/Application/views/frontend/tpl/stripecreditcard.tpl +++ b/Application/views/frontend/tpl/stripecreditcard.tpl @@ -113,6 +113,15 @@ } }); } + + //Activating card details form after load if stripe card is selected + document.addEventListener('DOMContentLoaded', function() { + $('#payment_stripecreditcard').is(':checked') && !$('#payment_stripecreditcard').parents('dt').next('dd').is(':visible') ? + $('#payment_stripecreditcard').trigger('click') + : false; + }); + + [{if false}][{/if}] [{/capture}] [{oxscript add=$smarty.capture.stripeComponentsLoad}] From cf2fe7c3bca493786314c1ace94a01bdf5284147 Mon Sep 17 00:00:00 2001 From: Mario Lorenz Date: Fri, 15 Nov 2024 14:44:20 +0100 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf6aa2a..3d63d7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - [0007731](https://bugs.oxid-esales.com/view.php?id=7731): If a credit card is declined, the payment page throws now a error-message instead of only reload the page +- Activating card details form after load if stripe card is selected ## [1.0.5] - 2024-09-20