51 / 100 SEO Score


User Info




Payment Info


var loader_image = 'registration Registration loader'; var ajaxurl = 'https://ezarzour.com/wp-admin/admin-ajax.php'; (function($) {

var active_payment_gateway='paypal-express';

jQuery(document).ready(function($) {

jQuery.validate({ form : '#iv_membership_registration', modules : 'security',

onSuccess : function() {

jQuery("#loading-3").show(); jQuery("#loading").html(loader_image);

if(active_payment_gateway=='stripe'){

Stripe.createToken({ number: jQuery('#card_number').val(), cvc: jQuery('#card_cvc').val(), exp_month: jQuery('#card_month').val(), exp_year: jQuery('#card_year').val(), //name: $('.card-holder-name').val(), //address_line1: $('.address').val(), //address_city: $('.city').val(), //address_zip: $('.zip').val(), //address_state: $('.state').val(), //address_country: $('.country').val() }, stripeResponseHandler);

return false;

}else{ // Else for paypal

return true; // false Will stop the submission of the form }

},

})

})

// this identifies your website in the createToken call below if(active_payment_gateway=='stripe'){ Stripe.setPublishableKey('');

function stripeResponseHandler(status, response) { if (response.error) { jQuery("#payment-errors").html('

x'+response.error.message +'.

'); jQuery("#loading-3").hide();

} else { var form$ = jQuery("#iv_membership_registration"); // token contains id, last4, and card type var token = response['id']; // insert the token into the form so it gets submitted to the server form$.append(""); // and submit form$.get(0).submit(); } } }

})(jQuery);

jQuery(document).ready(function() { jQuery('#coupon_name').on('keyup change', function() {

var ajaxurl = 'https://ezarzour.com/wp-admin/admin-ajax.php'; var search_params={ "action" : "iv_membership_check_coupon", "coupon_code" :jQuery("#coupon_name").val(), "package_id" :jQuery("#package_id").val(), "package_amount" :'2.000', "api_currency" :'', "form_data" :jQuery("#iv_membership_registration").serialize(),

}; jQuery('#coupon-result').html('registration Registration old loader'); jQuery.ajax({ url : ajaxurl, dataType : "json", type : "post", data : search_params, success : function(response){ if(response.code=='success'){ jQuery('#coupon-result').html('registration Registration right icon');

}else{ jQuery('#coupon-result').html('registration Registration wrong 16x16'); }

jQuery('#total').html(''); jQuery('#discount').html(''); } }); }); });

//jQuery("#package_id").val(pack_id);

var ajaxurl = 'https://ezarzour.com/wp-admin/admin-ajax.php'; var search_params={ "action" : "iv_membership_check_package_amount", "coupon_code" :jQuery("#coupon_name").val(), "package_id" : pack_id, "package_amount" :'2.000', "api_currency" :'', "form_data" :jQuery("#iv_membership_registration").serialize(), }; jQuery.ajax({ url : ajaxurl, dataType : "json", type : "post", data : search_params, success : function(response){ if(response.code=='success'){ jQuery('#coupon-result').html('registration Registration right icon'); }else{ jQuery('#coupon-result').html('registration Registration wrong 16x16'); } jQuery('#p_amount').html(''); jQuery('#total').html(''); jQuery('#tax').html(''); jQuery('#discount').html(''); } }); });

jQuery(function(){ jQuery('#package_sel').on('change', function (e) { var optionSelected = jQuery("option:selected", this); var pack_id = this.value;

jQuery("#package_id").val(pack_id);

var ajaxurl = 'https://ezarzour.com/wp-admin/admin-ajax.php'; var search_params={ "action" : "iv_membership_check_package_amount", "coupon_code" :jQuery("#coupon_name").val(), "package_id" : pack_id, "package_amount" :'2.000', "api_currency" :'', "form_data" :jQuery("#iv_membership_registration").serialize(), }; jQuery.ajax({ url : ajaxurl, dataType : "json", type : "post", data : search_params, success : function(response){ if(response.code=='success'){ jQuery('#coupon-result').html('registration Registration right icon'); }else{ jQuery('#coupon-result').html('registration Registration wrong 16x16'); } jQuery('#p_amount').html(''); jQuery('#total').html(''); jQuery('#tax').html(''); jQuery('#discount').html(''); } }); }); });

'); } function hide_coupon(){ jQuery("#coupon-div").hide(); jQuery("#show_hide_div").html('

'); }