SEPA Payment

This commit is contained in:
Kevin Adametz 2020-01-08 19:40:16 +01:00
parent 7ef7a507c7
commit f117f79bb9
9 changed files with 286 additions and 95 deletions

View file

@ -107,7 +107,6 @@
function showCreditCardPayment(val){
console.log(val);
if(val === 'cc'){
$('#creditcard-box-holder').show('slow');
}else{
@ -120,6 +119,19 @@
showCreditCardPayment($(this).val());
});
function showSEPAPayment(val){
if(val === 'elv'){
$('#sepa-box-holder').show('slow');
}else{
$('#sepa-box-holder').hide('slow');
}
}
showSEPAPayment(jQuery('input[name="payment_method"]:checked').val());
jQuery('input[name="payment_method"]').on('change', function () {
showSEPAPayment($(this).val());
});
</script>