Serwis Polfejs.pl jest darmowy w 100%. 
Funkcje Pro umożliwiają pełną kontrolę nad Twoim profilem. Kupując funkcję Pro wspierasz działalność Serwisu.
	
	
		
		
			
				
				Zobacz odwiedzających profil
			 
		 
		
		
			
				
				Pokaż / ukryj ostatnio widziany
			 
		 
		
		
	 
	
		Wybierz Swój plan
	
	
		
			
				 | 
								
											
										Gwiazda				 | 
												
											
										 Master				 | 
															
		
		
			
				| Cena | 
								zl10/ Na tydzien | 
												zl30/ Na miesiąc | 
												
			
				| Wyróżniony członek | 
								
											
									 | 
				
											
									 | 
														
			
				| Zobacz odwiedzających profil | 
								
											
									 | 
				
											
									 | 
																	
			
				| Pokaż / ukryj ostatnio widziany | 
								
											
									 | 
				
											
									 | 
												
			
				| Zweryfikowana odznaka | 
				
											
									 | 
								
											
									 | 
												
			
				Promocja postów
  | 
				
											5 Posty									 | 
				
											6 Posty									 | 
												
							
					Promocja stron
  | 
										
													5 Strony											 | 
													
													10 Strony											 | 
																
						
				| Zniżka | 
								
											
									 | 
				
											10% Zniżka									 | 
												
			
				 | 
								 | 
													 | 
												
		
	
	 
	
	
 
 ");
				setTimeout(function () {
					$('#cashfree_alert').html("");
				},3000);
			}
			$('#cashfree_btn').html("Zapłać teraz");
			$('#cashfree_btn').removeAttr('disabled');
		});
	}
function pay_using_paystack(type) {
	$("#paystack_alert").html('');
	$('#paystack_type').val(type)
	$('#pay-go-pro').modal('hide');
	$('#paystack_modal').modal({
        show: true
    });
}
function InitializePaystack() {
	$('#paystack_btn').html("Please wait..");
	$('#paystack_btn').attr('disabled','true');
	type = $('#paystack_type').val();
	email = $('#paystack_email').val();
	$.post(Wo_Ajax_Requests_File() + '?f=paystack&s=initialize', {type:type,email:email}, function(data) {
		if (data.status == 200) {
			window.location.href = data.url;
		} else {
			$('#paystack_alert').html("
"+data.message+"
");
			setTimeout(function () {
				$('#paystack_alert').html("");
			},3000);
		}
		$('#paystack_btn').html("Zapłać teraz");
	    $('#paystack_btn').removeAttr('disabled');
	});
}
function pay_using_wallet(type,description){
	var result = confirm("Are you want to buy "+ description + " using your wallet balance?");
	if (result) {
		$('.btn-walletpay').attr('disabled', true).text("Please wait..");
		$.post(Wo_Ajax_Requests_File() + '?f=pay_using_wallet', {type:type}, function(data) {
			if (data.status == 200) {
				window.location.href = data.url;
			} else {
				$('.btn-walletpay').attr('disabled', false).html("Problem While pay using wallet");
			}
		});
	}
}
function Wo_GetPayPalLink(type) {
   	 $('.btn-paypal').attr('disabled', true).text("Please wait..");
     $.post(Wo_Ajax_Requests_File() + '?f=get_paypal_url', {type:type}, function(data) {
         if (data.status == 200) {
             window.location.href = data.url;
         } else {
         	$('.btn-paypal').attr('disabled', false).html("PayPal App not set yet.");
         }
     });
}
function Wo_CheckOutCard(type, description, amount, payment_type) {
	if (payment_type == 'bitcoin') {
		$('.btn-bitcoin').attr('disabled', true).text("Please wait..");
	} else if (payment_type == 'credit_card') {
		$('.btn-cart').attr('disabled', true).text("Please wait..");
	} else if (payment_type == 'alipay') {
		$('.btn-alipay').attr('disabled', true).text("Please wait..");
	} else if (payment_type == 'bank_payment') {
		$('.bank_payment').attr('disabled', true).text("Please wait..");
	}
	var img = 'star';
	if (type == 1) {
		img = 'star';
	} else if (type == 2) {
		img = 'hot';
	} else if (type == 3) {
		img = 'ultima';
	} else if (type == 4) {
		img = 'vip';
	}
	if (payment_type != 'bank_payment' && payment_type != 'checkout') {
		var handler = StripeCheckout.configure({
	        key: "",
	        locale: 'english',
	        image: 'https://polfejs.net/themes/sunshine/img/' + img + '.png',
	        token: function(token) {
	          $('.modal-body').html('
 Confirming payment, please wait..');
	          $('#pay-go-pro').modal({
	             show: true
	            });
	          $.post(Wo_Ajax_Requests_File() + '?f=stripe_payment&pro_type=' + type, {stripeToken:token.id, amount:amount}, function (data) {
	          	 if (data.status == 200) {
	          	 	window.location.href = data.location;
	          	 } else {
	          	 	$('.modal-body').html('
 Payment declined, please try again later.');
	          	 }
	          });
	        }
	    });
	}
    if (payment_type == 'bitcoin') {
		$.get(Wo_Ajax_Requests_File() + '?f=paypro_with_bitcoin&amount=' + (amount/100) + '&desc=' + description + '&usertype=' + type  , function (data) {
			if (data.status == 200) {
				$(data.html).appendTo('body').submit();
			}
		});
    	// handler.open({
        //    name: "Polfejs",
        //    description: description,
        //    amount: amount,
        //    currency: 'PLN',
        //    bitcoin: true,
        //    opened: function () {
        //    	  $('#pay-go-pro').modal('hide');
        //    	  $('.btn-bitcoin').attr('disabled', false).html("
 Bitcoin");
        //    }
        // });
    } else if (payment_type == 'credit_card') {
    	handler.open({
           name: "Polfejs",
           description: description,
           amount: amount,
           currency: 'PLN',
           opened: function () {
           	  $('#pay-go-pro').modal('hide');
           	  $('.btn-cart').attr('disabled', false).html("
 Credit Card");
           }
        });
    } else if (payment_type == 'alipay') {
    	handler.open({
           name: "Polfejs",
           description: description,
           amount: amount,
           alipay: true,
           currency: 'PLN',
           opened: function () {
           	  $('#pay-go-pro').modal('hide');
           	  $('.btn-alipay').attr('disabled', false).html("
 Alipay");
           }
        });
    } else if (payment_type == 'bank_payment') {
    	$('#configreset').click();
    	$(".prv-img").html('
Drop Image Here
ORPrzeglądaj, aby przesłać
   ');
		$("#blog-alert").html('');
    	$('#bank_transfer_des').val(description);
    	$('#bank_transfer_type').val(type);
    	$('#pay-go-pro').modal('hide');
    	$('#bank_transfer_modal').modal({
             show: true
            });
	} else if (payment_type == 'checkout') {
		$("#2checkout_alert").html('');
		$('#pay-go-pro').modal('hide');
		$('#2checkout_type').val(type);
    	$('#2checkout_modal').modal({
            show: true
        });
	}
    $(window).on('popstate', function() {
       handler.close();
    });
}
// Called when token created successfully.
var successCallback = function(data) {
    var myForm = document.getElementById('2checkout_form');
    $.post(Wo_Ajax_Requests_File() + '?f=2checkout_pro', {card_number: $("#card_number").val(),card_cvc: $("#card_cvc").val(),card_month: $("#card_month").val(),card_year: $("#card_year").val(),card_name: $("#card_name").val(),card_address: $("#card_address").val(),card_city: $("#card_city").val(),card_state: $("#card_state").val(),card_zip: $("#card_zip").val(),card_country: $("#card_country").val(),card_email: $("#card_email").val(),card_phone: $("#card_phone").val(),type: $("#2checkout_type").val(),token: data.response.token.token}, function(data, textStatus, xhr) {
    	$('#2checkout_btn').html("Zapłać teraz");
    	$('#2checkout_btn').attr('disabled');
    	$('#2checkout_btn').removeAttr('disabled');
    	$('#2checkout_form').find('.ball-pulse').fadeOut(100);
    	if (data.status == 200) {
      	 	window.location.href = data.location;
      	} else {
      	 	$('#2checkout_alert').html("
"+data.error+"
");
			setTimeout(function () {
				$('#2checkout_alert').html("");
			},3000);
      	}
    	/*optional stuff to do after success */
    });
};
// Called when token creation fails.
var errorCallback = function(data) {
	$('#2checkout_btn').html("Zapłać teraz");
	$('#2checkout_btn').removeAttr('disabled');
	$('#2checkout_form').find('.ball-pulse').fadeOut(100);
    if (data.errorCode === 200) {
        tokenRequest();
    } else {
    	$('#2checkout_alert').html("
"+data.errorMsg+"
");
		setTimeout(function () {
			$('#2checkout_alert').html("");
		},3000);
    }
};
var tokenRequest = function() {
	$('#card_number').val($('#_number_').val());
	$('#2checkout_btn').html("Please wait..");
	$('#2checkout_btn').attr('disabled','true');
	if ($("#card_number").val() != '' && $("#card_cvc").val() != '' && $("#card_month").val() != '' && $("#card_year").val() != '' && $("#card_name").val() != '' && $("#card_address").val() != '' && $("#card_city").val() != '' && $("#card_state").val() != '' && $("#card_zip").val() != '' && $("#card_country").val() != 0 && $("#card_email").val() != '' && $("#card_phone").val() != '') {
		$('#2checkout_form').find('.ball-pulse').fadeIn(100);
		// Setup token request arguments
	    var args = {
	        sellerId: "",
	        publishableKey: "",
	        ccNo: $("#card_number").val(),
	        cvv: $("#card_cvc").val(),
	        expMonth: $("#card_month").val(),
	        expYear: $("#card_year").val()
	    };
	    // Make the token request
	    TCO.requestToken(successCallback, errorCallback, args);
	}
	else{
		$('#2checkout_btn').html("Zapłać teraz");
		$('#2checkout_btn').removeAttr('disabled');
		$('#2checkout_alert').html("
Sprawdź szczegóły.
");
		setTimeout(function () {
			$('#2checkout_alert').html("");
		},3000);
	}
};
$(function() {
    // Pull in the public encryption key for our environment
    TCO.loadPubKey("sandbox");
});
function Wo_GetPaymentLink(type) {
	$.get(Wo_Ajax_Requests_File() + '?f=get_payment_method&type=' + type, function (data) {
        if (data.status == 200) {
          	$('#pay-modal').html(data.html);
          	$('#pay-go-pro').modal({
             show: true
            });
        }
    });
}
$(document).on('click', '#select-img', function(event) {
	$("#thumbnail").click()
});
$(document).on('change', '#thumbnail', function(event) {
	let imgPath = $(this)[0].files[0].name;
    if (typeof(FileReader) != "undefined") {
        let reader = new FileReader();
        reader.onload = function(e) {
			$('#receipt_img_preview').attr('src', e.target.result);
        }
        reader.readAsDataURL(this.files[0]);
    }
	$('#bank_transfer_modal').addClass('up_rec_img_ready');
});
jQuery(document).ready(function($) {
	$('#bank_transfer_form').ajaxForm({
	  url: Wo_Ajax_Requests_File() + '?f=bank_transfer',
	  beforeSend: function() {
	    $('#bank_transfer_form').find('.ball-pulse').fadeIn(100);
	  },
	  success: function(data) {
	    if (data['status'] == 200) {
	    	$("#blog-alert").html('
'+ data['message'] +'
');
	    	setTimeout(function () {
	    		$(".prv-img").html('
Drop Image Here
ORPrzeglądaj, aby przesłać
   ');
	    		$("#blog-alert").html('');
	    		$('#configreset').click();
	    	},3000)
	    } else if (data['message']) {
	      $("#blog-alert").html('
' + data['message'] + '
');
	    } 
	    $('#bank_transfer_form').find('.ball-pulse').fadeOut(100);
	}});
});