Skip to content

Commit

Permalink
Merge pull request #32 from OXID-eSales/STRIP-45
Browse files Browse the repository at this point in the history
Activating card details form after load if stripe card is selected
  • Loading branch information
mariolorenz authored Nov 15, 2024
2 parents 1abbd57 + cf2fe7c commit b451d46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Application/views/frontend/tpl/stripecreditcard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}]</script>[{/if}]
[{/capture}]
[{oxscript add=$smarty.capture.stripeComponentsLoad}]
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b451d46

Please sign in to comment.