SEPA Payment
This commit is contained in:
parent
7ef7a507c7
commit
f117f79bb9
9 changed files with 286 additions and 95 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue