diff --git a/assets/css/novalnet-checkout.css b/assets/css/novalnet-checkout.css new file mode 100755 index 0000000..3787c58 --- /dev/null +++ b/assets/css/novalnet-checkout.css @@ -0,0 +1,22 @@ +.novalnet_loader { + position: fixed; + left: 0px; + top: 0px; + width: 100%; + height: 100%; + z-index: 9999; + background: url('../images/nn_loader.gif') 50% 50% no-repeat; +} + +.nn_cc_overlay { + position: fixed; + width: 100% ! important; + height: 100% ! important; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0,0,0,0.5); + z-index: 9999; + cursor: pointer; +} diff --git a/assets/images/nn_loader.gif b/assets/images/nn_loader.gif new file mode 100755 index 0000000..cf70c2e Binary files /dev/null and b/assets/images/nn_loader.gif differ diff --git a/assets/images/novalnet.png b/assets/images/novalnet.png new file mode 100755 index 0000000..6e9b8b9 Binary files /dev/null and b/assets/images/novalnet.png differ diff --git a/assets/images/novalnet_cashpayment.png b/assets/images/novalnet_cashpayment.png new file mode 100755 index 0000000..6319569 Binary files /dev/null and b/assets/images/novalnet_cashpayment.png differ diff --git a/assets/images/novalnet_cc_amex.png b/assets/images/novalnet_cc_amex.png new file mode 100755 index 0000000..cfbbba5 Binary files /dev/null and b/assets/images/novalnet_cc_amex.png differ diff --git a/assets/images/novalnet_cc_cartasi.png b/assets/images/novalnet_cc_cartasi.png new file mode 100755 index 0000000..8b2cc12 Binary files /dev/null and b/assets/images/novalnet_cc_cartasi.png differ diff --git a/assets/images/novalnet_cc_carte-bleue.png b/assets/images/novalnet_cc_carte-bleue.png new file mode 100755 index 0000000..ffe67f4 Binary files /dev/null and b/assets/images/novalnet_cc_carte-bleue.png differ diff --git a/assets/images/novalnet_cc_diners.png b/assets/images/novalnet_cc_diners.png new file mode 100755 index 0000000..d9d4810 Binary files /dev/null and b/assets/images/novalnet_cc_diners.png differ diff --git a/assets/images/novalnet_cc_discover.png b/assets/images/novalnet_cc_discover.png new file mode 100755 index 0000000..6db9e3c Binary files /dev/null and b/assets/images/novalnet_cc_discover.png differ diff --git a/assets/images/novalnet_cc_jcb.png b/assets/images/novalnet_cc_jcb.png new file mode 100755 index 0000000..0064100 Binary files /dev/null and b/assets/images/novalnet_cc_jcb.png differ diff --git a/assets/images/novalnet_cc_maestro.png b/assets/images/novalnet_cc_maestro.png new file mode 100755 index 0000000..26c6386 Binary files /dev/null and b/assets/images/novalnet_cc_maestro.png differ diff --git a/assets/images/novalnet_cc_mastercard.png b/assets/images/novalnet_cc_mastercard.png new file mode 100755 index 0000000..fed2b8e Binary files /dev/null and b/assets/images/novalnet_cc_mastercard.png differ diff --git a/assets/images/novalnet_cc_unionpay.png b/assets/images/novalnet_cc_unionpay.png new file mode 100755 index 0000000..5b8c37c Binary files /dev/null and b/assets/images/novalnet_cc_unionpay.png differ diff --git a/assets/images/novalnet_cc_visa.png b/assets/images/novalnet_cc_visa.png new file mode 100755 index 0000000..87b9709 Binary files /dev/null and b/assets/images/novalnet_cc_visa.png differ diff --git a/assets/images/novalnet_eps.png b/assets/images/novalnet_eps.png new file mode 100755 index 0000000..02875ae Binary files /dev/null and b/assets/images/novalnet_eps.png differ diff --git a/assets/images/novalnet_giropay.png b/assets/images/novalnet_giropay.png new file mode 100755 index 0000000..5bcd509 Binary files /dev/null and b/assets/images/novalnet_giropay.png differ diff --git a/assets/images/novalnet_ideal.png b/assets/images/novalnet_ideal.png new file mode 100755 index 0000000..9d08251 Binary files /dev/null and b/assets/images/novalnet_ideal.png differ diff --git a/assets/images/novalnet_instantbank.png b/assets/images/novalnet_instantbank.png new file mode 100755 index 0000000..d36b633 Binary files /dev/null and b/assets/images/novalnet_instantbank.png differ diff --git a/assets/images/novalnet_invoice.png b/assets/images/novalnet_invoice.png new file mode 100755 index 0000000..1898ed4 Binary files /dev/null and b/assets/images/novalnet_invoice.png differ diff --git a/assets/images/novalnet_paypal.png b/assets/images/novalnet_paypal.png new file mode 100755 index 0000000..9defac5 Binary files /dev/null and b/assets/images/novalnet_paypal.png differ diff --git a/assets/images/novalnet_prepayment.png b/assets/images/novalnet_prepayment.png new file mode 100755 index 0000000..9104281 Binary files /dev/null and b/assets/images/novalnet_prepayment.png differ diff --git a/assets/images/novalnet_przelewy24.png b/assets/images/novalnet_przelewy24.png new file mode 100755 index 0000000..331d7b3 Binary files /dev/null and b/assets/images/novalnet_przelewy24.png differ diff --git a/assets/images/novalnet_sepa.png b/assets/images/novalnet_sepa.png new file mode 100755 index 0000000..7daf3ca Binary files /dev/null and b/assets/images/novalnet_sepa.png differ diff --git a/assets/js/novalnet-admin.js b/assets/js/novalnet-admin.js new file mode 100755 index 0000000..76a8485 --- /dev/null +++ b/assets/js/novalnet-admin.js @@ -0,0 +1,254 @@ +/** + * Novalnet Admin action. + * + * @category Novalnet Admin action + * @package edd-novalnet-gateway + * @copyright Novalnet (https://www.novalnet.de) + * @license https://www.novalnet.de/payment-plugins/kostenlos/lizenz + */ + +var novalnet_admin; + +jQuery( document ).ready( + function ($) { + + if ( $( 'input[name="edd_settings[novalnet_public_key]"]' ).val() === '' || $( 'input[name="edd_settings[novalnet_tariff_id]"]' ).val() === '' || $( 'input[name="edd_settings[novalnet_tariff_id]"]' ).val() === undefined ) { + $('.notice-success').hide( ); + } + + $( '.guarantee_requirements' ).css( 'width','550%' ); + hide_vendor_details(); + jQuery( 'input[name="edd_settings[novalnet_public_key]"]' ).on( + 'change', + function() { + if ( '' !== jQuery.trim( jQuery( 'input[name="edd_settings[novalnet_public_key]"]' ).val() ) ) { + fill_novalnet_details(); + } else { + null_basic_params(); + } + } + ); + + if ( undefined != $( 'input[name="edd_settings[novalnet_public_key]"]' ).val() && '' != $( 'input[name="edd_settings[novalnet_public_key]"]' ).val() ) { + fill_novalnet_details(); + hide_vendor_details(); + } else { + null_basic_params(); + } + + // Onhold Fields Configurations. + onholdConfig(); + + // Guarantee Fields Configurations. + guaranteeConfig(); + + if ( '0' == jQuery( 'select[id="edd_settings[novalnet_subs_enable_option]"]' ).val() ) { + jQuery( '.novalnet_subs_config' ).closest( 'tr' ).hide(); + } else { + jQuery( '.novalnet_subs_config' ).closest( 'tr' ).show(); + jQuery('#edd_settings_novalnet_subs_payments__chosen').css('width', '400px'); + } + + jQuery( 'select[id="edd_settings[novalnet_subs_enable_option]"]' ).on( 'change', + function(){ + if ( '0' == jQuery( 'select[id="edd_settings[novalnet_subs_enable_option]"]' ).val() ) { + jQuery( '.novalnet_subs_config' ).closest( 'tr' ).hide(); + } else { + jQuery( '.novalnet_subs_config' ).closest( 'tr' ).show(); + jQuery('#edd_settings_novalnet_subs_payments__chosen').css('width', '400px'); + } + } + ); + } +); + +/* Null config values */ +function null_basic_params() { + jQuery( 'input[name="edd_settings[novalnet_merchant_id]"], input[name="edd_settings[novalnet_auth_code]"], input[name="edd_settings[novalnet_product_id]"], input[name="edd_settings[novalnet_access_key]"], input[name="edd_settings[novalnet_public_key]"], input[name="edd_settings[novalnet_client_key]"]' ).val( '' ); + jQuery( 'select[name="edd_settings[novalnet_tariff_id]"]' ).find( 'option' ).remove(); + jQuery( 'select[name="edd_settings[novalnet_tariff_id]"]' ).append( + jQuery( + '