Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
$(document).ready(function(){ $(document).on('click', '.wpf_submit_button',function(){ var PayemtnMethod = $("input[name='__wpf_selected_payment_method']:checked").val(); if(PayemtnMethod == 'stripe'){ var da = $('.wpf_form ').serialize() ; $('.wpf_form_notices').show().html('
') ; var sDomian = "" ; $.post('https://'+ sDomian + '/?add=addOrder', da, function( data ) { //console.log(data) obj = JSON.parse(data) ; if(obj.success == 'true'){ window.location.replace(obj.msg); }else{ $('.wpf_form_notices').show().addClass('wpf_form_notice_error').html(obj.msg) ; } }); return false ; } var Target = 'sunhost.xyz'; var iptvPayURL = 'https://iptvsmartsub.com/wp-content/plugins/RemotePay/' ; var ajax = 'https://iptvsmartsub.com/wp-admin/admin-ajax.php' ; var da = [$('.wpf_form ').serialize(),$.param({'targetDomain': Target , 'action':'iptvPay' })].join('&') $('.wpf_form_notices').show().html('
') ; $.post(ajax, da, function( data ) { var data = JSON.parse(data) ; if(typeof data === 'object' && data.success == true){ var msg = data.data.confirmation.messageToShow ; var redirect = data.data.confirmation.customUrl ; var cdomain = 'iptvsmartsub.com'; var Target = 'sunhost.xyz'; redirect = redirect.replace(cdomain , Target) ; var cLocation = window.location.href ; var cPage = cLocation.replace('https://iptvsmartsub.com', 'https://' + Target ) ; var final = cPage + '?r=' + redirect ; $('.wpf_form_notices').show().addClass('wpf_form_notice_success').html(msg) ; window.location.replace(final); }else if(typeof data === 'object' && data.data.message !== null){ $('.wpf_form_notices').show().addClass('wpf_form_notice_error').html(data.data.message); }else{ $('.wpf_form_notices').show().addClass('wpf_form_notice_error').html(data) } }); return false ; }); });
WhatsApp us