##<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<script src="https://js.stripe.com/v3/"></script>
<style>
button.stripe-button-el{margin:10px 0;padding: 0;width: 100%;background: #ffc439;height:65px;border-radius: 3px}
button.stripe-button-el:hover{box-shadow: inset 0 0 100px 100px rgba(0, 0, 0, 0.05)}
button.stripe-button-el span{color: #000000;font-size: 20px;line-height: 65px;font-weight: bold}
.checkout_all{display: flex;align-items: center;flex-flow: wrap}
.error input, .error textarea, .error select{margin-bottom: 16px;}
.loading{display: none}

@media only screen and (max-width: 1024px) {
.flex-break {
  flex-basis: 100%;
  height: 0;
}
}
.checkout_all.hide{display: none;}
</style>
<script>
	// define stripe variable
	var stripe = Stripe('pk_live_51HjeLuASw6d3sCjFuyDDlf9cJSRtvL4w5wqcKqPdAvVhmXz3oweyuakuGWUrc8FrMCfLUPPNHcQmTontsMVXyvKa0093geq1aD');
</script>

<style>
@media only screen and (max-width : 768px) {
	h1.signup-title{
	 border-bottom: none !important;  
	 font-size:36px;
	 line-height:40px; 
	 margin-bottom:7px;
	} 
}
</style>
<h1 class="entry-title signup-title" style="color: black;">Sign Up To FNArena</h1>
<div class="large-12 medium-12 no-pad marbot-20 martop-30">
	<p>Subscribers don't have to wait until their subscription expires to renew. Our system automatically adjusts the dates of your subscription, so you can renew at any time without losing anything from your existing subscription.</p>
</div>
<div class="clearfix"></div>
<div id="error-message" class="large-12 medium-12 columns text-center" style="display:none;margin:10px 0 20px 0;border:5px solid #f00">
	<h2 style="margin:10px 0px; color:#F00 !important;">Warning</h2>
    <p style="font-size:20px">Your payment is failed. Please <a href="mailto:rudi@fnarena.com">click here</a> to contact us for help.</p>
</div>
<div class="clearfix"></div>
<div class="large-12 medium-12 columns text-center" style="background:#1C9ACA;">
	<h3 style="margin:10px 0px; color:#FFF !important;">PAY USING DEBIT OR CREDIT CARD</h3>
</div>
<style>
.paylogo{
	background:#fff; 
	padding-top: 20px; 
	margin: 5px; 
	display: flex; 
	/*min-height: 240px;*/
	border: 1px solid #DCDCDC;
	margin-bottom:15px
}
.checkbox{
	display:inline-block; 
	width: 80%; 
	border-radius: 5px; 
	border: 1px solid #72AB04; 
	background-color: #87CC01; 
	padding: 5px 5px 0 0;
}

.bonusFeatureBook{
	padding: 30px 50px 40px;
}

.payUsingArea{
	padding:30px 30px 10px;
}

.paymethodtable{
	background:none !important;
	border:0px !important;
	margin:0px !important;
}
.paymethodtable td{
	border:0px !important;
}

.paylogo .columns{margin:auto;padding-bottom:10px;}
.btn-select-product{
	padding: 5px 20px 0 20px;
	border-radius: 5px;
	background-color: #ffc439;
}
.btn-select-product:hover,.btn-select-product:focus{
	background-color: #e8b235;
}
.cart .prod-desc-area{
	background-color: #33548A;
}
.cart.selected .prod-desc-area{
	background-color: #1C9ACC;
}
.cart .prod-desc-area hr{border: 5px solid #1C9ACC; margin-top: 0 !important}
/*.cart.selected .prod-desc-area hr{border: 5px solid #303d48}*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
	.bonusFeatureBook{
		padding:30px;
	}
	.payUsingArea{
		padding:30px 20px 10px;
	}
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
	.bonusFeatureBook{
		padding:20px;
	}
	.payUsingArea{
		padding:30px 10px 10px;
	}
	.paylogo{display:block;}
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
	.bonusFeatureBook{
		padding:10px;
	}
	.payUsingArea{
		padding:30px 10px 10px;
	}
}
</style>

<script type="text/javascript" src="https://staging.fnarena.com/wp-content/themes/fnarena/js/jquery.imagetick.min.js"></script>
<script type="text/javascript" src="https://staging.fnarena.com/wp-content/themes/fnarena/js/jquery.validate.min.js"></script>
<script>
	jQuery(document).ready(function($){

		// to display the error
       	
		var paymentCheckbox = $("input:radio[name='paymentMethod']");
		paymentCheckbox.imageTick({
			tick_image_path: "https://staging.fnarena.com/wp-content/themes/fnarena/images/radiobutton_checked.png", 
			no_tick_image_path: "https://staging.fnarena.com/wp-content/themes/fnarena/images/radiobutton.png",
			image_tick_class: "radios"
		});
		$("img.radios").css('cursor','pointer');
		$("img#tick_img_worldpay").click();
		//$("div.payment_cart").hide();
		//$("div.payment-worldpay").show();
		
		paymentCheckbox.click(function(){
			//note that if using jquery the checked value is reversed
			if(!$(this).is(':checked')){
				$("div.payment_cart").hide();
				$("div.payment-"+$(this).val()).show();
				if ($(this).val() == "paypal"){
					$('html, body').animate({
						scrollTop: $("div.payment-"+$(this).val()).offset().top - 100
					}, 2000);
				}
			}
		});
		$("#formEmailSubscribe").validate({
			rules: {
				txtEmail: "required"
			},
	        messages: {
	        	txtEmail: ""
	        }
		});
		/*$("#formEmailSubcsribe").submit(function(e) {
	        e.preventDefault();
	        var $form = $(this);          
        	if(! $form.valid()) return false;
        });*/
        $("#btnNext").click(function(e){
        	var frm = $('#formEmailSubscribe');
        	var email = $("#txtEmail").val();
        	
        	if (email == ""){
        		$(".error-blank").removeClass('hide');
        		e.preventDefault();
        	}else if(!isEmail(email)){
        		$(".error-blank").removeClass('hide');
        		e.preventDefault();
        	}else{
        		//console.log(frm.serialize());
        		/*$.ajax({
					url: '/action-forms/wp_find_email.php',
					type: 'post',
					data: frm.serialize(),
					success: function (data) {
						if (data == "0"){
							$(".error-blank").addClass('hide');
							$(".error-not-found").removeClass('hide');
						}
						else{
							$(".error-blank").addClass('hide');
							$(".error-not-found").addClass('hide');	
							$(".step1").find("h5").html("The new subscription will be registered to the following email address");
							frm.addClass('hide');
							$("#email").html(email);
							$("#submitEmail").removeClass('hide');
							$(".step2").stop().fadeIn();							
						}
					}
				});*/
        	}        	
        });
        $("#btnChange").click(function(e){
        	$('#formEmailSubscribe').removeClass('hide');
        	$('#submitEmail').addClass('hide');
        	e.preventDefault();
        });

        function isEmail(email) {
		  	var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		  	return regex.test(email);
		}

		// set session of selected product
		$(".btn-select-product").click(function() {
			var select = $(this);
			var product = $(this).attr('product');
			var paymentopt = "0";
			$.ajax({
				url: 'https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_set_product.php?product='+product,
				type: 'get',
				//data: "product="+product,
				success: function (data) {
					$(".cart").removeClass("selected");
					$(".cart").find("h6").html("SELECT THIS PRODUCT");
					select.parents(".cart").addClass("selected");
					select.find("h6").html("SELECTED");
					$(".step2").fadeIn();
					var email = document.getElementById("email_signup").value;
					if (email != ""){
						$(".checkout_all").addClass("hide");
						$("#checkout_prod_"+product).removeClass("hide");
						if (paymentopt == 1 )
							$(".step3").fadeIn();
					}
				}
			});
		});		

		//validate the form input customer and do action via ajax
		$("#formInputCustomer").on('valid.fndtn.abide', function (e) {
			e.preventDefault();
			var data = $(this).serialize();
		    var method = $(this).attr('method');
		    var action = $(this).attr('action');
		    
		    $.ajax({
		      url: action,
		      data: data,
		      method: method,
		      beforeSend: function() {
		        $("#inputCustomerArea").hide()
		        $(".loading").show();
		        
		      },
		      success: function(data) {
		      	console.log(data);
		        $(".loading").hide();
		        $(".step3").removeClass("hide");
		        
		      }
		    });
		});	

	});
	jQuery(window).bind("load", function($) {
		var email = document.getElementById("email_signup").value;
		if (email != ""){
			jQuery("html, body").animate({scrollTop: jQuery(".step1").offset().top}, '500');
			//$( ".step2" ).scrollTop( 0 );
		}
	});
</script> 

<div class="large-12 medium-12 columns text-center payUsingArea" style="background:#F5F5F5;" clock="UTC - 05/02/2026 08:08:24 am">
	<!--<div class="large-6 medium-6 columns text-center ">
		<div class="paylogo">
			<img src="https://staging.fnarena.com/wp-content/themes/fnarena/images/worldpay_logo.jpg"/>
			<div class="checkbox text-left martop-20">
				<table class="paymethodtable" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td width="15%" style="padding:2px 0 8px 10px;" valign="top"><input type="radio" value="worldpay" id="worldpay" name="paymentMethod" checked></td>
						<td style="padding:5px 0 0 0;" valign="top"><p class="white"><b>Secure Credit Card Payments</b></p></td>
					</tr>
				</table>
			</div>
            <table class="paymethodtable" cellspacing="0" cellpadding="0" border="0">
            	<tr>
                	<td align="center" style="text-align:center">
                    	<img src="https://www.fnarena.com/wp-content/uploads/2017/10/mastercard.jpg" width="100px"/>
                		<img src="https://www.fnarena.com/wp-content/uploads/2017/10/visa.jpg" width="100px" />
                    </td>
                </tr>
            </table>
		</div>
	</div>-->
	<div class="large-12 medium-12 columns text-center">
		<div class="paylogo">
			<div class="large-4 medium-6 columns"><img src="https://staging.fnarena.com/wp-content/themes/fnarena/images/paypal_logo.jpg"/><p style="font-size:15px;color:#ad0b32"><strong>No account with PayPal is required</strong></p></div>
			<div class="large-4 medium-6 columns"><img src="/wp-content/uploads/2017/10/visa.jpg" width="80"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="80"></div>
			<div class="large-4 medium-12 columns"><p>If you have a Self Managed Super Fund or you cannot pay via credit card online please contact us for <strong>Alternative Payment options</strong> at 
				<a href="mailto:info@fnarena.com">info@fnarena.com</a>.</p></div>
			<!--<div class="checkbox text-left martop-20">
				<table class="paymethodtable" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td width="15%" style="padding:4px 0 0 10px;" valign="top"><input type="radio" value="paypal" id="paypal" name="paymentMethod"></td>
						<td style="padding:5px 0 0 0;" valign="top"><p class="white"><b>Choose this option if you want to avoid potential extra bank fees.<br/>You don't need your own PayPal account.</b></p></td>
					</tr>
				</table>
			</div>-->
			<div class="clearfix"></div>
		</div>
	</div>
	<div class="clearfix"></div>

	<!--<div class="text-center large-12 columns" style="padding:20px 15px;">
		<hr>
		<p>If you have a Self Managed Super Fund or you cannot pay via credit card online please contact us for <strong>Alternative Payment options</strong> at 
		<a href="mailto:info@fnarena.com">info@fnarena.com</a>.</p>
		<hr>
	</div>-->
	<div class="large-12 medium-12 columns text-center">
		<!-- step 1 : select product -->
		<div class="large-12 medium-12 columns text-center step1">
			<h2 style="border-bottom: 5px solid #1C9ACC">SELECT YOUR PREFERRED SUBSCRIPTION</h2>
			<div class='large-4 medium-4 small-12 columns bottoms text-center cart '><div style='background:white'><img src='https://staging.fnarena.com/wp-content/themes/fnarena/images/best_value.png' alt='' style='position: absolute; left: 0;'><h2 class='martop-5 marbot-5' style='padding-top: 25px; border: none;'>12 MONTHS</h2>							<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 560.00</h3>
						</div>
						<div class="prod-desc-area">
							<hr>
							<p class="s14 white" style="padding: 10px 10px;">This subscription comes with specials and extras, see below.</p>
							<button class="btn-select-product text-center" product="38">
								<h6>SELECT THIS PRODUCT</h6>
							</button>
						</div>
									  </div>

	<div class='large-4 medium-4 small-12 columns bottoms text-center cart '><div style='background:white'><h2 class='martop-5 marbot-5' style='padding-top: 25px; border: none;'>6 MONTHS</h2>							<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 305.00</h3>
						</div>
						<div class="prod-desc-area">
							<hr>
							<p class="s14 white" style="padding: 10px 10px;">This subscription comes with specials and extras, see below.</p>
							<button class="btn-select-product text-center" product="37">
								<h6>SELECT THIS PRODUCT</h6>
							</button>
						</div>
									  </div>

	<div class='large-4 medium-4 small-12 columns bottoms text-center cart '><div style='background:white'><h2 class='martop-5 marbot-5' style='padding-top: 25px; border: none;'>1 MONTH</h2>							<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 79.00</h3>
						</div>
						<div class="prod-desc-area">
							<hr>
							<p class="s14 white" style="padding: 10px 10px;">Our try-out option, for if you're not 100% convinced yet.</p>
							<button class="btn-select-product text-center" product="36">
								<h6>SELECT THIS PRODUCT</h6>
							</button>
						</div>
									  </div>

			</div>
		<div class="clearfix"></div>

		<!-- step 2 : get customer info -->
				<div class="large-12 medium-12 small-12 columns text-center step2 hide">
			<h2 style="border-bottom: 5px solid #1C9ACC">ENTER YOUR EMAIL</h2>
						<h6>Enter your email address below.<br>Existing members should use their current subscription email.</h6>
						<div class="clearfix"></div>
						<form method="post" name="formEmailSubscribe" id="formEmailSubscribe" class="" action="https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_enter_email.php">
				<input type="hidden" name="url" value="/index.php/wp-json/wp/v2/pages/76509">
				<input type="hidden" name="email_signup" id="email_signup" value="">
				<div class="large-6 medium-6 large-push-3 medium-push-3 columns"><input type="text" name="txtEmail" id="txtEmail" placeholder="Email Address" value=""></div>
				<div class="large-4 medium-4 columns"><input type="submit" name="btnNext" id="btnNext" value="Next"></div>
			</form>	
			<div class="clearfix"></div>
			<!-- enter email -->
			<div class="hide" id="submitEmail">
				<div class="large-6 medium-6 large-push-3 medium-push-3 columns" id="email" style="padding:6px 0"></div>
				<div class="large-4 medium-4 columns"><input type="submit" name="btnChange" id="btnChange" value="Change"></div>
			</div>
			<div class="clearfix"></div>
			<p class="hide error-blank" style="font-size:15px;color:#ad0b32">Please enter your valid email</p>

						<div class="loading">
				<div class="lds-dual-ring"></div>
			</div>
		</div>

		<!-- step 3 : select payment -->
				<div class="small-12 columns text-center step3 hide">
			<h2 style="border-bottom: 5px solid #1C9ACC;margin-top:20px">SELECT YOUR PREFERRED PAYMENT OPTION</h2>
			<div class="checkout_box" style="position: relative;">
			<div class='large-12 medium-12 small-12 columns bottoms text-center hide checkout_all' id='checkout_prod_38'>
		  		<div class='large-3 medium-4 small-12 columns'><h2 class='martop-5 marbot-5' style='border: none;'>12 MONTHS</h2>					<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 560.00</h3>
				</div>
				<div class="large-4 medium-8 small-12 columns">
					<button id="checkout-button-38" class="stripe-button-el"><span style="margin-right: 10px">PAY NOW</span> <img src="/wp-content/uploads/2017/10/visa.jpg" width="50"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="50"></button>
					<p><i class="fa fa-check" style="vertical-align:bottom;font-size:20px;color:#9bd636"></i> No additional bank fees</p>
				</div>
				<div class="flex-break"></div>
				<div class="large-2 medium-4 small-12 columns">
					<p style="margin:3px 0">or alternatively</p>
				</div>
				<div class="large-3 medium-8 small-12 columns">
	                	                <div id="paypal-button-container-38"></div>
	                	                <p style="margin-top:10px">Additional bank fees may apply</p>
	            </div>
					</div>

		

        <script>
        	//STRIPE
        	var checkoutButton = document.querySelector('#checkout-button-'+38);
			checkoutButton.addEventListener('click', function () {
				checkoutButton.disabled = true;
				var url = "https://staging.fnarena.com/wp-content/themes/fnarena";
				var cancelurl = "6KRC6C0tmIjX8Oyym8akd2DVLwv7%2FO1JDJgoSTdjcdRfCciWRTZzcbIZjgEgadyZP40CRciL%2B%2B2Ze8dfWsM7M0ssPyUwLrs%2Bsm3xfHWbk0vf%2BaKCG%2FErm5wfm9n272eNkXTaMqK16TGyrtChNYwUcA%3D%3D";
				fetch(url+"/session_stripe.php?pID=38&cancelurl="+cancelurl, { method: "POST", })
		        .then(function (response) {
		          return response.json();
		        })
		        .then(function (session) {
		          return stripe.redirectToCheckout({ sessionId: session.id });
		        })
		        .then(function (result) {
		          // If redirectToCheckout fails due to a browser or network
		          // error, you should display the localized error message to your
		          // customer using error.message.
		          if (result.error) {
		            alert(result.error.message);
		          }
		        })
		        .catch(function (error) {
		          console.error("Error:", error);
		        });
			});

			//PAYPAL
			var paypalForm = document.getElementById("frmPaypal"+38);
			var email = document.getElementById("email_signup").value;
			//console.log(email+" 0");

			// Render the PayPal button
			(function () {

				//var realEmail = document.getElementById("txtEmail").value;
				//alert(realEmail);

				paypal.Button.render({

					// Set your environment
					env: 'production', // sandbox | production

					//Set Australia
					locale: 'en_AU',

					// Specify the style of the button
					style: {
						label: 'pay',
						size:  'responsive',    // small | medium | large | responsive
						shape: 'rect',     // pill | rect
						color: 'gold',      // gold | blue | silver | black
						tagline: false
					},
					funding: {
					 	//allowed: [ paypal.FUNDING.CARD ],
					 	disallowed: [ paypal.FUNDING.CREDIT ]
					},
					// Show the buyer a 'Pay Now' button in the checkout flow
					commit: true,

					client: {
						sandbox:    'AZ1Ovrwy9CXe4Fna0zULt3xhRC2vA2DQhUVYpDHSE3hloJ274x8UXK5IgCwWqMhtBx-l7HvgnzU8QsoK',
						production: 'AXtJExwOxwuvPtUseLDkyWsxqa9AarMauaroU4-vqCi3DiCoXUA8MlZzydDcNYVWFQp3qknfOIkRUdGu'
					},

					/*missing info:
					-product name: echo ${"productName".$pID.$pm};
					-UUID (UniqueReference): ${"UniqueReference".$pID.$pm}."&MC_PRODUCTID=$pID
					*/

					payment: function(data, actions) {

						// Make a call to the REST api to create the payment
						return actions.payment.create({
							payment: {
								transactions: [{
									amount: {
										total: '560',
										currency: 'AUD'
									},
									custom: '38,b4d3aae3cbc125115bbb9b4064a631df,'+email
							    }],
							    note_to_payer: 'Contact us for any questions on your order.'
							},
							redirect_urls: {
					          	return_url: 'https://staging.fnarena.com/index.php/signup-thank-you/'
					        }
						});
					},

					/*onAuthorize: function(data, actions) {
						return actions.payment.execute()
					    .then(function (param) {
					    	//alert('https://staging.fnarena.com/index.php/signup-thank-you/');
					    	//actions.redirect();
					    	window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
					    });

					},*/
					onApprove: function(data, actions) {
				      // This function captures the funds from the transaction.
				      clear_cookies();
				      return actions.order.capture().then(function(details) {
				        // This function shows a transaction success message to your buyer.
				        window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
				      });
				    },
					onCancel: function (data, actions) {
					   //return actions.redirect();
					},
					onError: function(data, actions){
					   //document.getElementById("error-message").style.display = "block";
					   alert('error');
					}

				}, '#paypal-button-container-38');
			})();

			function clear_cookies(){
				jQuery.ajax({
			    	url: "https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_clear_cookies.php"
			  	});
			}
			</script>

        <div class='large-12 medium-12 small-12 columns bottoms text-center hide checkout_all' id='checkout_prod_37'>
		  		<div class='large-3 medium-4 small-12 columns'><h2 class='martop-5 marbot-5' style='border: none;'>6 MONTHS</h2>					<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 305.00</h3>
				</div>
				<div class="large-4 medium-8 small-12 columns">
					<button id="checkout-button-37" class="stripe-button-el"><span style="margin-right: 10px">PAY NOW</span> <img src="/wp-content/uploads/2017/10/visa.jpg" width="50"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="50"></button>
					<p><i class="fa fa-check" style="vertical-align:bottom;font-size:20px;color:#9bd636"></i> No additional bank fees</p>
				</div>
				<div class="flex-break"></div>
				<div class="large-2 medium-4 small-12 columns">
					<p style="margin:3px 0">or alternatively</p>
				</div>
				<div class="large-3 medium-8 small-12 columns">
	                	                <div id="paypal-button-container-37"></div>
	                	                <p style="margin-top:10px">Additional bank fees may apply</p>
	            </div>
					</div>

		

        <script>
        	//STRIPE
        	var checkoutButton = document.querySelector('#checkout-button-'+37);
			checkoutButton.addEventListener('click', function () {
				checkoutButton.disabled = true;
				var url = "https://staging.fnarena.com/wp-content/themes/fnarena";
				var cancelurl = "wC7g8U%2BLURqRZOEOL1TXl4GfbAWR9tPpcDEHcvTSN8SqeDAPPJ4yr9s5nOs2mdGf3iU8N6HGpjqBeglSBTiwcemR%2Fd5t4wgvR0aEA9RG7MhkWxogm%2F%2BhuPpQXOzmX17qoCNP0pPH5BloTlnItPZGAw%3D%3D";
				fetch(url+"/session_stripe.php?pID=37&cancelurl="+cancelurl, { method: "POST", })
		        .then(function (response) {
		          return response.json();
		        })
		        .then(function (session) {
		          return stripe.redirectToCheckout({ sessionId: session.id });
		        })
		        .then(function (result) {
		          // If redirectToCheckout fails due to a browser or network
		          // error, you should display the localized error message to your
		          // customer using error.message.
		          if (result.error) {
		            alert(result.error.message);
		          }
		        })
		        .catch(function (error) {
		          console.error("Error:", error);
		        });
			});

			//PAYPAL
			var paypalForm = document.getElementById("frmPaypal"+37);
			var email = document.getElementById("email_signup").value;
			//console.log(email+" 0");

			// Render the PayPal button
			(function () {

				//var realEmail = document.getElementById("txtEmail").value;
				//alert(realEmail);

				paypal.Button.render({

					// Set your environment
					env: 'production', // sandbox | production

					//Set Australia
					locale: 'en_AU',

					// Specify the style of the button
					style: {
						label: 'pay',
						size:  'responsive',    // small | medium | large | responsive
						shape: 'rect',     // pill | rect
						color: 'gold',      // gold | blue | silver | black
						tagline: false
					},
					funding: {
					 	//allowed: [ paypal.FUNDING.CARD ],
					 	disallowed: [ paypal.FUNDING.CREDIT ]
					},
					// Show the buyer a 'Pay Now' button in the checkout flow
					commit: true,

					client: {
						sandbox:    'AZ1Ovrwy9CXe4Fna0zULt3xhRC2vA2DQhUVYpDHSE3hloJ274x8UXK5IgCwWqMhtBx-l7HvgnzU8QsoK',
						production: 'AXtJExwOxwuvPtUseLDkyWsxqa9AarMauaroU4-vqCi3DiCoXUA8MlZzydDcNYVWFQp3qknfOIkRUdGu'
					},

					/*missing info:
					-product name: echo ${"productName".$pID.$pm};
					-UUID (UniqueReference): ${"UniqueReference".$pID.$pm}."&MC_PRODUCTID=$pID
					*/

					payment: function(data, actions) {

						// Make a call to the REST api to create the payment
						return actions.payment.create({
							payment: {
								transactions: [{
									amount: {
										total: '305',
										currency: 'AUD'
									},
									custom: '37,51f6c3a21aa69663adf37cd3a51d7112,'+email
							    }],
							    note_to_payer: 'Contact us for any questions on your order.'
							},
							redirect_urls: {
					          	return_url: 'https://staging.fnarena.com/index.php/signup-thank-you/'
					        }
						});
					},

					/*onAuthorize: function(data, actions) {
						return actions.payment.execute()
					    .then(function (param) {
					    	//alert('https://staging.fnarena.com/index.php/signup-thank-you/');
					    	//actions.redirect();
					    	window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
					    });

					},*/
					onApprove: function(data, actions) {
				      // This function captures the funds from the transaction.
				      clear_cookies();
				      return actions.order.capture().then(function(details) {
				        // This function shows a transaction success message to your buyer.
				        window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
				      });
				    },
					onCancel: function (data, actions) {
					   //return actions.redirect();
					},
					onError: function(data, actions){
					   //document.getElementById("error-message").style.display = "block";
					   alert('error');
					}

				}, '#paypal-button-container-37');
			})();

			function clear_cookies(){
				jQuery.ajax({
			    	url: "https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_clear_cookies.php"
			  	});
			}
			</script>

        <div class='large-12 medium-12 small-12 columns bottoms text-center hide checkout_all' id='checkout_prod_36'>
		  		<div class='large-3 medium-4 small-12 columns'><h2 class='martop-5 marbot-5' style='border: none;'>1 MONTH</h2>					<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 79.00</h3>
				</div>
				<div class="large-4 medium-8 small-12 columns">
					<button id="checkout-button-36" class="stripe-button-el"><span style="margin-right: 10px">PAY NOW</span> <img src="/wp-content/uploads/2017/10/visa.jpg" width="50"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="50"></button>
					<p><i class="fa fa-check" style="vertical-align:bottom;font-size:20px;color:#9bd636"></i> No additional bank fees</p>
				</div>
				<div class="flex-break"></div>
				<div class="large-2 medium-4 small-12 columns">
					<p style="margin:3px 0">or alternatively</p>
				</div>
				<div class="large-3 medium-8 small-12 columns">
	                	                <div id="paypal-button-container-36"></div>
	                	                <p style="margin-top:10px">Additional bank fees may apply</p>
	            </div>
					</div>

		

        <script>
        	//STRIPE
        	var checkoutButton = document.querySelector('#checkout-button-'+36);
			checkoutButton.addEventListener('click', function () {
				checkoutButton.disabled = true;
				var url = "https://staging.fnarena.com/wp-content/themes/fnarena";
				var cancelurl = "hyEo0rv%2FHdPZ1lXpWnAHoKoJ64HeYnwzvHxnpI%2BPWBJMfPbz87Omzrnxp%2BjTBNygBNGq1t4hOkL%2B6biI29skoEvbLTndEcFEFFfe1jOuQKb6wifjBYKtGn9x9YcsaJQKeV0rOVq5YK4f3psjOnhDSA%3D%3D";
				fetch(url+"/session_stripe.php?pID=36&cancelurl="+cancelurl, { method: "POST", })
		        .then(function (response) {
		          return response.json();
		        })
		        .then(function (session) {
		          return stripe.redirectToCheckout({ sessionId: session.id });
		        })
		        .then(function (result) {
		          // If redirectToCheckout fails due to a browser or network
		          // error, you should display the localized error message to your
		          // customer using error.message.
		          if (result.error) {
		            alert(result.error.message);
		          }
		        })
		        .catch(function (error) {
		          console.error("Error:", error);
		        });
			});

			//PAYPAL
			var paypalForm = document.getElementById("frmPaypal"+36);
			var email = document.getElementById("email_signup").value;
			//console.log(email+" 0");

			// Render the PayPal button
			(function () {

				//var realEmail = document.getElementById("txtEmail").value;
				//alert(realEmail);

				paypal.Button.render({

					// Set your environment
					env: 'production', // sandbox | production

					//Set Australia
					locale: 'en_AU',

					// Specify the style of the button
					style: {
						label: 'pay',
						size:  'responsive',    // small | medium | large | responsive
						shape: 'rect',     // pill | rect
						color: 'gold',      // gold | blue | silver | black
						tagline: false
					},
					funding: {
					 	//allowed: [ paypal.FUNDING.CARD ],
					 	disallowed: [ paypal.FUNDING.CREDIT ]
					},
					// Show the buyer a 'Pay Now' button in the checkout flow
					commit: true,

					client: {
						sandbox:    'AZ1Ovrwy9CXe4Fna0zULt3xhRC2vA2DQhUVYpDHSE3hloJ274x8UXK5IgCwWqMhtBx-l7HvgnzU8QsoK',
						production: 'AXtJExwOxwuvPtUseLDkyWsxqa9AarMauaroU4-vqCi3DiCoXUA8MlZzydDcNYVWFQp3qknfOIkRUdGu'
					},

					/*missing info:
					-product name: echo ${"productName".$pID.$pm};
					-UUID (UniqueReference): ${"UniqueReference".$pID.$pm}."&MC_PRODUCTID=$pID
					*/

					payment: function(data, actions) {

						// Make a call to the REST api to create the payment
						return actions.payment.create({
							payment: {
								transactions: [{
									amount: {
										total: '79',
										currency: 'AUD'
									},
									custom: '36,e206c7e517d507345271ef67c5c7195c,'+email
							    }],
							    note_to_payer: 'Contact us for any questions on your order.'
							},
							redirect_urls: {
					          	return_url: 'https://staging.fnarena.com/index.php/signup-thank-you/'
					        }
						});
					},

					/*onAuthorize: function(data, actions) {
						return actions.payment.execute()
					    .then(function (param) {
					    	//alert('https://staging.fnarena.com/index.php/signup-thank-you/');
					    	//actions.redirect();
					    	window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
					    });

					},*/
					onApprove: function(data, actions) {
				      // This function captures the funds from the transaction.
				      clear_cookies();
				      return actions.order.capture().then(function(details) {
				        // This function shows a transaction success message to your buyer.
				        window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
				      });
				    },
					onCancel: function (data, actions) {
					   //return actions.redirect();
					},
					onError: function(data, actions){
					   //document.getElementById("error-message").style.display = "block";
					   alert('error');
					}

				}, '#paypal-button-container-36');
			})();

			function clear_cookies(){
				jQuery.ajax({
			    	url: "https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_clear_cookies.php"
			  	});
			}
			</script>

        			
			<div class="clearfix"></div>
			</div>
		</div>
		<!--<div class="large-12 medium-12 columns text-center" style="margin-top:-20px">
			<p style="font-size:15px;color:#ad0b32"><strong>Credit Card payments are being processed through PayPal - no account with PayPal is required</strong></p>
		</div>-->
		<div class="large-12 medium-12 columns text-left " style="padding:20px 15px;">
			<hr>
				<p align="justify">If you don't want to process your credit card details on the internet, send us an email at <a href="mailto:info@fnarena.com">info@fnarena.com</a></p>
				<p>By pressing one of the Sign Up buttons above, you agree with the following terms and conditions:</p>
				<p>"The Australian Broker Call is a summary that has been prepared independently of the brokers identified. 
					This service does not have the sponsorship, affiliation or approval of those brokers. 
					You will check the full text of the recommendations and consult your Licenced Advisor before making any investment decision." 
				</p>
				<p>
				  "All copyright is owned by the publisher. You will not copy, forward or disseminate anything, 
				  be in part or in whole, to any other person. Requests for reproduction can be directed at <a href='mailto:info@fnarena.com'>info@fnarena.com</a>." 
				</p>
			<hr>
		</div>
		
	</div>
	<div class="clearfix"></div>
</div>

<div class="large-12 medium-12 columns text-center bonusFeatureBook" style="background:#33548A;">
	<h2 class="white" style="border-bottom: 5px solid #1C9ACc; margin-bottom: 30px;">A SUBSCRIPTION TO FNARENA (6 OR 12 MONTHS) COMES WITH MULTIPLE BONUS FEATURES, INCLUDING:</h1>
	<div class='large-4 medium-6 small-12 columns text-left bottoms'>
		<div style='background-color: #1C9ACC; padding: 5px 20px;'>
			<h3 class="white">SPECIAL REPORT</h3>
		</div>
		<div class="text-center" style='background-color: #FFFFFF; min-height: 578px; padding: 20px 12px;'>
			<a target="_blank" href="https://www.fnarena.com/images/cover/Cover_Dividend_Investing_The_Smart_Way.jpg"><img class="cover bottoms" src="https://www.fnarena.com/images/cover/Cover_Dividend_Investing_The_Smart_Way_180px.jpg"/></a>
			<p class="text-left" style="padding:0px 10px;"><b>Dividend Investing, The Smart Way</b></p>
			<p class="text-left" style="padding:0px 10px;">Investing in equities for income involves a lot more than simply owning the banks and Telstra. A simple, straightforward guide to avoid the pitfalls and obvious traps, and build a more reliable, sustainable portfolio.</p>
		</div>
	</div>
	<div class='large-4 medium-6 small-12 columns text-left bottoms'>
		<div style='background-color: #FF8A00; padding: 5px 20px;'>
			<h3 class="white">SPECIAL REPORT</h3>
		</div>
		<div class="text-center" style='background-color: #FFFFFF; min-height: 578px; padding: 20px 12px;'>
			<a target="_blank" href="https://www.fnarena.com/images/cover/Cover_The_AUD_and_the_Australian_Share_Market_July_2013.jpg"><img class="cover bottoms" src="https://www.fnarena.com/images/cover/Cover_The_AUD_and_the_Australian_Share_Market_July_2013_180px.jpg"/></a>
			<p class="text-left" style="padding:0px 10px;"><b>AUD and the Australian Share Market</b></p>
			<p class="text-left" style="padding:0px 10px;">Which stocks and sectors benefit or suffer most from AUD movement? What drives the currency? What level is neutral for the Australian economy?</p>
		</div>
	</div>
	<div class='large-4 medium-6 small-12 columns text-left bottoms'>
		<div style='background-color: #1C9ACC; padding: 5px 20px;'>
			<h3 class="white">SPECIAL REPORT</h3>
		</div>
		<div class="text-center" style='background-color: #FFFFFF; min-height: 578px; padding: 20px 12px;'>
			<a target="_blank" href="https://www.fnarena.com/images/cover/Not_About_The_Banks.jpg"><img class="cover bottoms" src="https://www.fnarena.com/images/cover/Not_About_The_Banks_180px.jpg"/></a>
			<p class="text-left" style="padding:0px 10px;"><b>(Not) About The Banks</b></p>
			<p class="text-left" style="padding:0px 10px;">Cheaper-priced stocks do not by definition offer a better investment opportunity. How do we qualify 'Better Quality' and how does this contribute to sustainable investment returns? A case study on CBA and Australian banks answers many questions.</p>
		</div>
	</div>
	<div class="clearfix"></div>
</div>			<style>
			.ui-widget-content a { color: #12417f; }
			.ui-menu-item {
				padding-left:25px;
			}
			.click-here{
				white-space: nowrap;
				padding-left:8px;
				padding-top:2px;
			}
			.click-below{
				white-space: nowrap;
				padding-left:25px;
				padding-top:10px;
				padding-bottom:10px;
			}
			ul.ui-autocomplete > li.click-here:hover,
			ul.ui-autocomplete > li.ui-menu-item:hover {
				background:#dbeef3;
			}
			</style>
			<div class="large-12 columns no-pad search_form">
				<form action="https://staging.fnarena.com/index.php/search/" style="background:#f8f8f8; padding: 14px 18px 16px 18px;" id="searchform" method="get" role="search" class="search-form">
					<h5 class="helveLTbold" style="margin-bottom:5px;">Search Stocks & Stories</h5>
					<div class="row collapse">
						<div class="medium-9 large-9 columns">
							<input type="text" placeholder="Enter company name or ASX code" id="s" name="searchkeyword" value="" class="nomarginbot">
						</div>
						<div class="medium-3 large-3 columns">
							<input type="submit" class="button postfix tiny nomarginbot" value="Search" id="searchsubmit" style="border-radius:0px !important;">
						</div>
						<div class="clearfix"></div>
					</div>
				</form>
			</div>
			<script>

            jQuery(document).ready(function(){

                  jQuery( "#s" ).autocomplete({
				    source: function(request, response) {
				        if (request.term.length < 3) {
				            response([]);
				            return;
				        }
				        
				        jQuery.ajax({
				            url: '/wp-content/themes/fnarena/ajax_company_search.php',
				            dataType: "json",
				            data: {
				                term: request.term
				            },
				            success: function(data) {
				                // First deduplicate the Ajax results
				                var uniqueResults = [];
				                var seenLabels = {};
				                
				                // Remove duplicates from initial data
				                jQuery.each(data, function(i, item) {
				                    if (!seenLabels[item.label]) {
				                        seenLabels[item.label] = true;
				                        uniqueResults.push(item);
				                    }
				                });
				                
				                // Filter for top suggestions (exact matches at start)
				                var top_suggestions = jQuery.grep(uniqueResults, function(n, i) {
				                    return (n.label.substr(0, request.term.length).toLowerCase() == request.term.toLowerCase());
				                });
				                
				                // Since we've already deduplicated, we can safely merge
				                var final_results = jQuery.merge(top_suggestions, uniqueResults);
				                
				                // Remove any duplicates that might have been created during merge
				                var finalUnique = [];
				                seenLabels = {};
				                
				                jQuery.each(final_results, function(i, item) {
				                    if (!seenLabels[item.label]) {
				                        seenLabels[item.label] = true;
				                        finalUnique.push(item);
				                    }
				                });
				                
				                response(finalUnique);
				            },
				            error: function() {
				                response([]);
				            }
				        });
				    },
				    minLength: 3,
				    open: function(e, ui) {
				        var acData = jQuery(this).data('ui-autocomplete');
				        acData.menu.element.find('li').each(function() {
				            var me = jQuery(this);
				            var keywords = acData.term.split(' ').join('|');
				            me.html(me.text().replace(new RegExp("(" + keywords + ")", "gi"), '<b>$1</b>'));
				        });
				        
				        var searchletter = acData.term.split(' ').join('|');
				        jQuery('ul.ui-autocomplete').prepend('<li class="click-here"><a href="/index.php?s='+searchletter+'">Click here to search using : '+searchletter+'</a></li>');
				        jQuery('ul.ui-autocomplete').prepend('<li class="click-below">Click below to search by company : </li>');
				    }
				});
            });
            </script>
			<div class="clearfix"></div>
	        <div class="clearfix"></div>
        <div class="large-12 medium-12 columns no-pad martop-15 latest-news">
            <h2>Latest News</h2>
            <div class="inner-area">
            <table style='margin:0px; border:0px;'>                        <tr>
                            <td valign="top" align="left" style="background: white; font-size:16px; padding-top:2px; border:0px; ">
                                <span>1</span>
                            </td>
                            <td valign="top" align="left" style="background: white; padding:0px; border:0px; ">
                                <h6 class="marbot-5 helveLTstdCN" style="padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;">
                                    <a href="https://staging.fnarena.com/index.php/2025/10/07/technologyones-saas-transformation-complete/">TechnologyOne&#8217;s SaaS Transformation &#8216;Complete&#8217;</a>
                                </h6>
                                <p class="s12 marbot-0 gray ">Oct 07 2025 - <font color="#12417F"><a href="https://staging.fnarena.com/index.php/financial-news/daily-financial-news/category/australia/" rel="category tag">Australia</a></font></p>
                            </td>
                        </tr>
                        <tr><td colspan='2' style="background: white; padding:10px 0px; border:0px; "><hr style="margin:0px !important;"/></td></tr>
                                            <tr>
                            <td valign="top" align="left" style="background: white; font-size:16px; padding-top:2px; border:0px; ">
                                <span>2</span>
                            </td>
                            <td valign="top" align="left" style="background: white; padding:0px; border:0px; ">
                                <h6 class="marbot-5 helveLTstdCN" style="padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;">
                                    <a href="https://staging.fnarena.com/index.php/2025/10/06/stock-market-in-september-republish/">Stock Market in September Republish</a>
                                </h6>
                                <p class="s12 marbot-0 gray ">Oct 06 2025 - <font color="#12417F"><a href="https://staging.fnarena.com/index.php/financial-news/daily-financial-news/category/international/" rel="category tag">International</a></font></p>
                            </td>
                        </tr>
                        <tr><td colspan='2' style="background: white; padding:10px 0px; border:0px; "><hr style="margin:0px !important;"/></td></tr>
                                            <tr>
                            <td valign="top" align="left" style="background: white; font-size:16px; padding-top:2px; border:0px; ">
                                <span>3</span>
                            </td>
                            <td valign="top" align="left" style="background: white; padding:0px; border:0px; ">
                                <h6 class="marbot-5 helveLTstdCN" style="padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;">
                                    <a href="https://staging.fnarena.com/index.php/2025/10/06/stock-market-in-september/">Stock Market in September</a>
                                </h6>
                                <p class="s12 marbot-0 gray ">Oct 06 2025 - <font color="#12417F"><a href="https://staging.fnarena.com/index.php/financial-news/daily-financial-news/category/international/" rel="category tag">International</a></font></p>
                            </td>
                        </tr>
                        <tr><td colspan='2' style="background: white; padding:10px 0px; border:0px; "><hr style="margin:0px !important;"/></td></tr>
                                            <tr>
                            <td valign="top" align="left" style="background: white; font-size:16px; padding-top:2px; border:0px; ">
                                <span>4</span>
                            </td>
                            <td valign="top" align="left" style="background: white; padding:0px; border:0px; ">
                                <h6 class="marbot-5 helveLTstdCN" style="padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;">
                                    <a href="https://staging.fnarena.com/index.php/2025/10/06/technologyone-story-by-novi/">TechnologyOne Story by Novi</a>
                                </h6>
                                <p class="s12 marbot-0 gray ">Oct 06 2025 - <font color="#12417F"><a href="https://staging.fnarena.com/index.php/financial-news/daily-financial-news/category/international/" rel="category tag">International</a></font></p>
                            </td>
                        </tr>
                        <tr><td colspan='2' style="background: white; padding:10px 0px; border:0px; "><hr style="margin:0px !important;"/></td></tr>
                                            <tr>
                            <td valign="top" align="left" style="background: white; font-size:16px; padding-top:2px; border:0px; ">
                                <span>5</span>
                            </td>
                            <td valign="top" align="left" style="background: white; padding:0px; border:0px; ">
                                <h6 class="marbot-5 helveLTstdCN" style="padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;">
                                    <a href="https://staging.fnarena.com/index.php/2025/06/12/geopolitical-hedging-drives-investor-confidence-in-commbank/">Geopolitical Hedging Drives Investor Confidence in CommBank</a>
                                </h6>
                                <p class="s12 marbot-0 gray ">Jun 12 2025 - <font color="#12417F"><a href="https://staging.fnarena.com/index.php/financial-news/daily-financial-news/category/general/" rel="category tag">General</a></font></p>
                            </td>
                        </tr>
                        <tr><td colspan='2' style="background: white; padding:10px 0px; border:0px; "><hr style="margin:0px !important;"/></td></tr>
                                    </table>            </div>
        </div>
        <div class="clearfix"></div>
							
				<div><div class="textwidget custom-html-widget"></div></div>
						<!-- <div class="large-12 medium-12 columns no-pad marbot-5">
				<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
				<script>
					var googletag = googletag || {};
					googletag.cmd = googletag.cmd || [];
				</script>

				<div id="div-gpt-ad-1520311188559-0">
					<script>
						googletag.cmd.push(function() {
							googletag.defineSlot('/76291182/FNarena-MREC', [300, 250], 'div-gpt-ad-1520311188559-0').addService(googletag.pubads());
							googletag.enableServices();
							googletag.display('div-gpt-ad-1520311188559-0');
						});
					</script>
				</div>
			</div> -->
	
		<div class="large-12 medium-12 columns no-pad most-popular">
			<h2>Most Popular</h2>
			<div class="inner-area">
              <table style='margin:0px; border:0px;'>							<p>No Data</p>
														<p>No Data</p>
														<p>No Data</p>
														<p>No Data</p>
														<p>No Data</p>
														<p>No Data</p>
							</table>            </div>
		</div>
		<div class="clearfix"></div>
	<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<script src="https://js.stripe.com/v3/"></script>
<style>
button.stripe-button-el{margin:10px 0;padding: 0;width: 100%;background: #ffc439;height:65px;border-radius: 3px}
button.stripe-button-el:hover{box-shadow: inset 0 0 100px 100px rgba(0, 0, 0, 0.05)}
button.stripe-button-el span{color: #000000;font-size: 20px;line-height: 65px;font-weight: bold}
.checkout_all{display: flex;align-items: center;flex-flow: wrap}
.error input, .error textarea, .error select{margin-bottom: 16px;}
.loading{display: none}

@media only screen and (max-width: 1024px) {
.flex-break {
  flex-basis: 100%;
  height: 0;
}
}
.checkout_all.hide{display: none;}
</style>
<script>
	// define stripe variable
	var stripe = Stripe('');
</script>

<style>
@media only screen and (max-width : 768px) {
	h1.signup-title{
	 border-bottom: none !important;  
	 font-size:36px;
	 line-height:40px; 
	 margin-bottom:7px;
	} 
}
</style>
<h1 class="entry-title signup-title" style="color: black;">Sign Up To FNArena</h1>
<div class="large-12 medium-12 no-pad marbot-20 martop-30">
	<p>Subscribers don't have to wait until their subscription expires to renew. Our system automatically adjusts the dates of your subscription, so you can renew at any time without losing anything from your existing subscription.</p>
</div>
<div class="clearfix"></div>
<div id="error-message" class="large-12 medium-12 columns text-center" style="display:none;margin:10px 0 20px 0;border:5px solid #f00">
	<h2 style="margin:10px 0px; color:#F00 !important;">Warning</h2>
    <p style="font-size:20px">Your payment is failed. Please <a href="mailto:rudi@fnarena.com">click here</a> to contact us for help.</p>
</div>
<div class="clearfix"></div>
<div class="large-12 medium-12 columns text-center" style="background:#1C9ACA;">
	<h3 style="margin:10px 0px; color:#FFF !important;">PAY USING DEBIT OR CREDIT CARD</h3>
</div>
<style>
.paylogo{
	background:#fff; 
	padding-top: 20px; 
	margin: 5px; 
	display: flex; 
	/*min-height: 240px;*/
	border: 1px solid #DCDCDC;
	margin-bottom:15px
}
.checkbox{
	display:inline-block; 
	width: 80%; 
	border-radius: 5px; 
	border: 1px solid #72AB04; 
	background-color: #87CC01; 
	padding: 5px 5px 0 0;
}

.bonusFeatureBook{
	padding: 30px 50px 40px;
}

.payUsingArea{
	padding:30px 30px 10px;
}

.paymethodtable{
	background:none !important;
	border:0px !important;
	margin:0px !important;
}
.paymethodtable td{
	border:0px !important;
}

.paylogo .columns{margin:auto;padding-bottom:10px;}
.btn-select-product{
	padding: 5px 20px 0 20px;
	border-radius: 5px;
	background-color: #ffc439;
}
.btn-select-product:hover,.btn-select-product:focus{
	background-color: #e8b235;
}
.cart .prod-desc-area{
	background-color: #33548A;
}
.cart.selected .prod-desc-area{
	background-color: #1C9ACC;
}
.cart .prod-desc-area hr{border: 5px solid #1C9ACC; margin-top: 0 !important}
/*.cart.selected .prod-desc-area hr{border: 5px solid #303d48}*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
	.bonusFeatureBook{
		padding:30px;
	}
	.payUsingArea{
		padding:30px 20px 10px;
	}
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
	.bonusFeatureBook{
		padding:20px;
	}
	.payUsingArea{
		padding:30px 10px 10px;
	}
	.paylogo{display:block;}
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
	.bonusFeatureBook{
		padding:10px;
	}
	.payUsingArea{
		padding:30px 10px 10px;
	}
}
</style>

<script type="text/javascript" src="https://staging.fnarena.com/wp-content/themes/fnarena/js/jquery.imagetick.min.js"></script>
<script type="text/javascript" src="https://staging.fnarena.com/wp-content/themes/fnarena/js/jquery.validate.min.js"></script>
<script>
	jQuery(document).ready(function($){

		// to display the error
       	
		var paymentCheckbox = $("input:radio[name='paymentMethod']");
		paymentCheckbox.imageTick({
			tick_image_path: "https://staging.fnarena.com/wp-content/themes/fnarena/images/radiobutton_checked.png", 
			no_tick_image_path: "https://staging.fnarena.com/wp-content/themes/fnarena/images/radiobutton.png",
			image_tick_class: "radios"
		});
		$("img.radios").css('cursor','pointer');
		$("img#tick_img_worldpay").click();
		//$("div.payment_cart").hide();
		//$("div.payment-worldpay").show();
		
		paymentCheckbox.click(function(){
			//note that if using jquery the checked value is reversed
			if(!$(this).is(':checked')){
				$("div.payment_cart").hide();
				$("div.payment-"+$(this).val()).show();
				if ($(this).val() == "paypal"){
					$('html, body').animate({
						scrollTop: $("div.payment-"+$(this).val()).offset().top - 100
					}, 2000);
				}
			}
		});
		$("#formEmailSubscribe").validate({
			rules: {
				txtEmail: "required"
			},
	        messages: {
	        	txtEmail: ""
	        }
		});
		/*$("#formEmailSubcsribe").submit(function(e) {
	        e.preventDefault();
	        var $form = $(this);          
        	if(! $form.valid()) return false;
        });*/
        $("#btnNext").click(function(e){
        	var frm = $('#formEmailSubscribe');
        	var email = $("#txtEmail").val();
        	
        	if (email == ""){
        		$(".error-blank").removeClass('hide');
        		e.preventDefault();
        	}else if(!isEmail(email)){
        		$(".error-blank").removeClass('hide');
        		e.preventDefault();
        	}else{
        		//console.log(frm.serialize());
        		/*$.ajax({
					url: '/action-forms/wp_find_email.php',
					type: 'post',
					data: frm.serialize(),
					success: function (data) {
						if (data == "0"){
							$(".error-blank").addClass('hide');
							$(".error-not-found").removeClass('hide');
						}
						else{
							$(".error-blank").addClass('hide');
							$(".error-not-found").addClass('hide');	
							$(".step1").find("h5").html("The new subscription will be registered to the following email address");
							frm.addClass('hide');
							$("#email").html(email);
							$("#submitEmail").removeClass('hide');
							$(".step2").stop().fadeIn();							
						}
					}
				});*/
        	}        	
        });
        $("#btnChange").click(function(e){
        	$('#formEmailSubscribe').removeClass('hide');
        	$('#submitEmail').addClass('hide');
        	e.preventDefault();
        });

        function isEmail(email) {
		  	var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		  	return regex.test(email);
		}

		// set session of selected product
		$(".btn-select-product").click(function() {
			var select = $(this);
			var product = $(this).attr('product');
			var paymentopt = "0";
			$.ajax({
				url: 'https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_set_product.php?product='+product,
				type: 'get',
				//data: "product="+product,
				success: function (data) {
					$(".cart").removeClass("selected");
					$(".cart").find("h6").html("SELECT THIS PRODUCT");
					select.parents(".cart").addClass("selected");
					select.find("h6").html("SELECTED");
					$(".step2").fadeIn();
					var email = document.getElementById("email_signup").value;
					if (email != ""){
						$(".checkout_all").addClass("hide");
						$("#checkout_prod_"+product).removeClass("hide");
						if (paymentopt == 1 )
							$(".step3").fadeIn();
					}
				}
			});
		});		

		//validate the form input customer and do action via ajax
		$("#formInputCustomer").on('valid.fndtn.abide', function (e) {
			e.preventDefault();
			var data = $(this).serialize();
		    var method = $(this).attr('method');
		    var action = $(this).attr('action');
		    
		    $.ajax({
		      url: action,
		      data: data,
		      method: method,
		      beforeSend: function() {
		        $("#inputCustomerArea").hide()
		        $(".loading").show();
		        
		      },
		      success: function(data) {
		      	console.log(data);
		        $(".loading").hide();
		        $(".step3").removeClass("hide");
		        
		      }
		    });
		});	

	});
	jQuery(window).bind("load", function($) {
		var email = document.getElementById("email_signup").value;
		if (email != ""){
			jQuery("html, body").animate({scrollTop: jQuery(".step1").offset().top}, '500');
			//$( ".step2" ).scrollTop( 0 );
		}
	});
</script> 

<div class="large-12 medium-12 columns text-center payUsingArea" style="background:#F5F5F5;" clock="Australia/Melbourne - 05/02/2026 08:08:25 am">
	<!--<div class="large-6 medium-6 columns text-center ">
		<div class="paylogo">
			<img src="https://staging.fnarena.com/wp-content/themes/fnarena/images/worldpay_logo.jpg"/>
			<div class="checkbox text-left martop-20">
				<table class="paymethodtable" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td width="15%" style="padding:2px 0 8px 10px;" valign="top"><input type="radio" value="worldpay" id="worldpay" name="paymentMethod" checked></td>
						<td style="padding:5px 0 0 0;" valign="top"><p class="white"><b>Secure Credit Card Payments</b></p></td>
					</tr>
				</table>
			</div>
            <table class="paymethodtable" cellspacing="0" cellpadding="0" border="0">
            	<tr>
                	<td align="center" style="text-align:center">
                    	<img src="https://www.fnarena.com/wp-content/uploads/2017/10/mastercard.jpg" width="100px"/>
                		<img src="https://www.fnarena.com/wp-content/uploads/2017/10/visa.jpg" width="100px" />
                    </td>
                </tr>
            </table>
		</div>
	</div>-->
	<div class="large-12 medium-12 columns text-center">
		<div class="paylogo">
			<div class="large-4 medium-6 columns"><img src="https://staging.fnarena.com/wp-content/themes/fnarena/images/paypal_logo.jpg"/><p style="font-size:15px;color:#ad0b32"><strong>No account with PayPal is required</strong></p></div>
			<div class="large-4 medium-6 columns"><img src="/wp-content/uploads/2017/10/visa.jpg" width="80"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="80"></div>
			<div class="large-4 medium-12 columns"><p>If you have a Self Managed Super Fund or you cannot pay via credit card online please contact us for <strong>Alternative Payment options</strong> at 
				<a href="mailto:info@fnarena.com">info@fnarena.com</a>.</p></div>
			<!--<div class="checkbox text-left martop-20">
				<table class="paymethodtable" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<td width="15%" style="padding:4px 0 0 10px;" valign="top"><input type="radio" value="paypal" id="paypal" name="paymentMethod"></td>
						<td style="padding:5px 0 0 0;" valign="top"><p class="white"><b>Choose this option if you want to avoid potential extra bank fees.<br/>You don't need your own PayPal account.</b></p></td>
					</tr>
				</table>
			</div>-->
			<div class="clearfix"></div>
		</div>
	</div>
	<div class="clearfix"></div>

	<!--<div class="text-center large-12 columns" style="padding:20px 15px;">
		<hr>
		<p>If you have a Self Managed Super Fund or you cannot pay via credit card online please contact us for <strong>Alternative Payment options</strong> at 
		<a href="mailto:info@fnarena.com">info@fnarena.com</a>.</p>
		<hr>
	</div>-->
	<div class="large-12 medium-12 columns text-center">
		<!-- step 1 : select product -->
		<div class="large-12 medium-12 columns text-center step1">
			<h2 style="border-bottom: 5px solid #1C9ACC">SELECT YOUR PREFERRED SUBSCRIPTION</h2>
			<div class='large-4 medium-4 small-12 columns bottoms text-center cart '><div style='background:white'><img src='https://staging.fnarena.com/wp-content/themes/fnarena/images/best_value.png' alt='' style='position: absolute; left: 0;'><h2 class='martop-5 marbot-5' style='padding-top: 25px; border: none;'>12 MONTHS</h2>							<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 560.00</h3>
						</div>
						<div class="prod-desc-area">
							<hr>
							<p class="s14 white" style="padding: 10px 10px;">This subscription comes with specials and extras, see below.</p>
							<button class="btn-select-product text-center" product="38">
								<h6>SELECT THIS PRODUCT</h6>
							</button>
						</div>
									  </div>

	<div class='large-4 medium-4 small-12 columns bottoms text-center cart '><div style='background:white'><h2 class='martop-5 marbot-5' style='padding-top: 25px; border: none;'>6 MONTHS</h2>							<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 305.00</h3>
						</div>
						<div class="prod-desc-area">
							<hr>
							<p class="s14 white" style="padding: 10px 10px;">This subscription comes with specials and extras, see below.</p>
							<button class="btn-select-product text-center" product="37">
								<h6>SELECT THIS PRODUCT</h6>
							</button>
						</div>
									  </div>

	<div class='large-4 medium-4 small-12 columns bottoms text-center cart '><div style='background:white'><h2 class='martop-5 marbot-5' style='padding-top: 25px; border: none;'>1 MONTH</h2>							<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 79.00</h3>
						</div>
						<div class="prod-desc-area">
							<hr>
							<p class="s14 white" style="padding: 10px 10px;">Our try-out option, for if you're not 100% convinced yet.</p>
							<button class="btn-select-product text-center" product="36">
								<h6>SELECT THIS PRODUCT</h6>
							</button>
						</div>
									  </div>

			</div>
		<div class="clearfix"></div>

		<!-- step 2 : get customer info -->
				<div class="large-12 medium-12 small-12 columns text-center step2 hide">
			<h2 style="border-bottom: 5px solid #1C9ACC">ENTER YOUR EMAIL</h2>
						<h6>Enter your email address below.<br>Existing members should use their current subscription email.</h6>
						<div class="clearfix"></div>
						<form method="post" name="formEmailSubscribe" id="formEmailSubscribe" class="" action="https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_enter_email.php">
				<input type="hidden" name="url" value="/index.php/wp-json/wp/v2/pages/76509">
				<input type="hidden" name="email_signup" id="email_signup" value="">
				<div class="large-6 medium-6 large-push-3 medium-push-3 columns"><input type="text" name="txtEmail" id="txtEmail" placeholder="Email Address" value=""></div>
				<div class="large-4 medium-4 columns"><input type="submit" name="btnNext" id="btnNext" value="Next"></div>
			</form>	
			<div class="clearfix"></div>
			<!-- enter email -->
			<div class="hide" id="submitEmail">
				<div class="large-6 medium-6 large-push-3 medium-push-3 columns" id="email" style="padding:6px 0"></div>
				<div class="large-4 medium-4 columns"><input type="submit" name="btnChange" id="btnChange" value="Change"></div>
			</div>
			<div class="clearfix"></div>
			<p class="hide error-blank" style="font-size:15px;color:#ad0b32">Please enter your valid email</p>

						<div class="loading">
				<div class="lds-dual-ring"></div>
			</div>
		</div>

		<!-- step 3 : select payment -->
				<div class="small-12 columns text-center step3 hide">
			<h2 style="border-bottom: 5px solid #1C9ACC;margin-top:20px">SELECT YOUR PREFERRED PAYMENT OPTION</h2>
			<div class="checkout_box" style="position: relative;">
			<div class='large-12 medium-12 small-12 columns bottoms text-center hide checkout_all' id='checkout_prod_38'>
		  		<div class='large-3 medium-4 small-12 columns'><h2 class='martop-5 marbot-5' style='border: none;'>12 MONTHS</h2>					<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 560.00</h3>
				</div>
				<div class="large-4 medium-8 small-12 columns">
					<button id="checkout-button-38" class="stripe-button-el"><span style="margin-right: 10px">PAY NOW</span> <img src="/wp-content/uploads/2017/10/visa.jpg" width="50"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="50"></button>
					<p><i class="fa fa-check" style="vertical-align:bottom;font-size:20px;color:#9bd636"></i> No additional bank fees</p>
				</div>
				<div class="flex-break"></div>
				<div class="large-2 medium-4 small-12 columns">
					<p style="margin:3px 0">or alternatively</p>
				</div>
				<div class="large-3 medium-8 small-12 columns">
	                	                <div id="paypal-button-container-38"></div>
	                	                <p style="margin-top:10px">Additional bank fees may apply</p>
	            </div>
					</div>

		

        <script>
        	//STRIPE
        	var checkoutButton = document.querySelector('#checkout-button-'+38);
			checkoutButton.addEventListener('click', function () {
				checkoutButton.disabled = true;
				var url = "https://staging.fnarena.com/wp-content/themes/fnarena";
				var cancelurl = "MfxuuzqVTi%2BsVDmCzlLA7BWbkKIdgmTGRD8P922ALJXrNwnK9T30ACnOMskWRXAPzHEg5SPIWmmH4hpKsZ4PsREwZh03H9lzSlhmKPiEJrYIbap6kpxrszUt%2FLULCQIszth7PY4TM%2B1wmdtVT14bpA%3D%3D";
				fetch(url+"/session_stripe.php?pID=38&cancelurl="+cancelurl, { method: "POST", })
		        .then(function (response) {
		          return response.json();
		        })
		        .then(function (session) {
		          return stripe.redirectToCheckout({ sessionId: session.id });
		        })
		        .then(function (result) {
		          // If redirectToCheckout fails due to a browser or network
		          // error, you should display the localized error message to your
		          // customer using error.message.
		          if (result.error) {
		            alert(result.error.message);
		          }
		        })
		        .catch(function (error) {
		          console.error("Error:", error);
		        });
			});

			//PAYPAL
			var paypalForm = document.getElementById("frmPaypal"+38);
			var email = document.getElementById("email_signup").value;
			//console.log(email+" 0");

			// Render the PayPal button
			(function () {

				//var realEmail = document.getElementById("txtEmail").value;
				//alert(realEmail);

				paypal.Button.render({

					// Set your environment
					env: 'production', // sandbox | production

					//Set Australia
					locale: 'en_AU',

					// Specify the style of the button
					style: {
						label: 'pay',
						size:  'responsive',    // small | medium | large | responsive
						shape: 'rect',     // pill | rect
						color: 'gold',      // gold | blue | silver | black
						tagline: false
					},
					funding: {
					 	//allowed: [ paypal.FUNDING.CARD ],
					 	disallowed: [ paypal.FUNDING.CREDIT ]
					},
					// Show the buyer a 'Pay Now' button in the checkout flow
					commit: true,

					client: {
						sandbox:    'AZ1Ovrwy9CXe4Fna0zULt3xhRC2vA2DQhUVYpDHSE3hloJ274x8UXK5IgCwWqMhtBx-l7HvgnzU8QsoK',
						production: 'AXtJExwOxwuvPtUseLDkyWsxqa9AarMauaroU4-vqCi3DiCoXUA8MlZzydDcNYVWFQp3qknfOIkRUdGu'
					},

					/*missing info:
					-product name: echo ${"productName".$pID.$pm};
					-UUID (UniqueReference): ${"UniqueReference".$pID.$pm}."&MC_PRODUCTID=$pID
					*/

					payment: function(data, actions) {

						// Make a call to the REST api to create the payment
						return actions.payment.create({
							payment: {
								transactions: [{
									amount: {
										total: '560',
										currency: 'AUD'
									},
									custom: '38,6184fafe84a700fd58449ae186949a9a,'+email
							    }],
							    note_to_payer: 'Contact us for any questions on your order.'
							},
							redirect_urls: {
					          	return_url: 'https://staging.fnarena.com/index.php/signup-thank-you/'
					        }
						});
					},

					/*onAuthorize: function(data, actions) {
						return actions.payment.execute()
					    .then(function (param) {
					    	//alert('https://staging.fnarena.com/index.php/signup-thank-you/');
					    	//actions.redirect();
					    	window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
					    });

					},*/
					onApprove: function(data, actions) {
				      // This function captures the funds from the transaction.
				      clear_cookies();
				      return actions.order.capture().then(function(details) {
				        // This function shows a transaction success message to your buyer.
				        window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
				      });
				    },
					onCancel: function (data, actions) {
					   //return actions.redirect();
					},
					onError: function(data, actions){
					   //document.getElementById("error-message").style.display = "block";
					   alert('error');
					}

				}, '#paypal-button-container-38');
			})();

			function clear_cookies(){
				jQuery.ajax({
			    	url: "https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_clear_cookies.php"
			  	});
			}
			</script>

        <div class='large-12 medium-12 small-12 columns bottoms text-center hide checkout_all' id='checkout_prod_37'>
		  		<div class='large-3 medium-4 small-12 columns'><h2 class='martop-5 marbot-5' style='border: none;'>6 MONTHS</h2>					<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 305.00</h3>
				</div>
				<div class="large-4 medium-8 small-12 columns">
					<button id="checkout-button-37" class="stripe-button-el"><span style="margin-right: 10px">PAY NOW</span> <img src="/wp-content/uploads/2017/10/visa.jpg" width="50"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="50"></button>
					<p><i class="fa fa-check" style="vertical-align:bottom;font-size:20px;color:#9bd636"></i> No additional bank fees</p>
				</div>
				<div class="flex-break"></div>
				<div class="large-2 medium-4 small-12 columns">
					<p style="margin:3px 0">or alternatively</p>
				</div>
				<div class="large-3 medium-8 small-12 columns">
	                	                <div id="paypal-button-container-37"></div>
	                	                <p style="margin-top:10px">Additional bank fees may apply</p>
	            </div>
					</div>

		

        <script>
        	//STRIPE
        	var checkoutButton = document.querySelector('#checkout-button-'+37);
			checkoutButton.addEventListener('click', function () {
				checkoutButton.disabled = true;
				var url = "https://staging.fnarena.com/wp-content/themes/fnarena";
				var cancelurl = "2LHSWrEQEN4cSp8l%2BMpqBUywxpgBYzi2P%2F6SrrWL7GjPjCIuNt%2BEQgHeJf%2FJAY1GBCDixXY08NovQUy64%2FFX0Lx8XdXTHLXrlrHj460tMV2h7Ys%2BVlvcGfP2D4HqAWfJWrlMBgvIYEKllhOi8wYtSg%3D%3D";
				fetch(url+"/session_stripe.php?pID=37&cancelurl="+cancelurl, { method: "POST", })
		        .then(function (response) {
		          return response.json();
		        })
		        .then(function (session) {
		          return stripe.redirectToCheckout({ sessionId: session.id });
		        })
		        .then(function (result) {
		          // If redirectToCheckout fails due to a browser or network
		          // error, you should display the localized error message to your
		          // customer using error.message.
		          if (result.error) {
		            alert(result.error.message);
		          }
		        })
		        .catch(function (error) {
		          console.error("Error:", error);
		        });
			});

			//PAYPAL
			var paypalForm = document.getElementById("frmPaypal"+37);
			var email = document.getElementById("email_signup").value;
			//console.log(email+" 0");

			// Render the PayPal button
			(function () {

				//var realEmail = document.getElementById("txtEmail").value;
				//alert(realEmail);

				paypal.Button.render({

					// Set your environment
					env: 'production', // sandbox | production

					//Set Australia
					locale: 'en_AU',

					// Specify the style of the button
					style: {
						label: 'pay',
						size:  'responsive',    // small | medium | large | responsive
						shape: 'rect',     // pill | rect
						color: 'gold',      // gold | blue | silver | black
						tagline: false
					},
					funding: {
					 	//allowed: [ paypal.FUNDING.CARD ],
					 	disallowed: [ paypal.FUNDING.CREDIT ]
					},
					// Show the buyer a 'Pay Now' button in the checkout flow
					commit: true,

					client: {
						sandbox:    'AZ1Ovrwy9CXe4Fna0zULt3xhRC2vA2DQhUVYpDHSE3hloJ274x8UXK5IgCwWqMhtBx-l7HvgnzU8QsoK',
						production: 'AXtJExwOxwuvPtUseLDkyWsxqa9AarMauaroU4-vqCi3DiCoXUA8MlZzydDcNYVWFQp3qknfOIkRUdGu'
					},

					/*missing info:
					-product name: echo ${"productName".$pID.$pm};
					-UUID (UniqueReference): ${"UniqueReference".$pID.$pm}."&MC_PRODUCTID=$pID
					*/

					payment: function(data, actions) {

						// Make a call to the REST api to create the payment
						return actions.payment.create({
							payment: {
								transactions: [{
									amount: {
										total: '305',
										currency: 'AUD'
									},
									custom: '37,c8530bd95a77c2f6917900bbfcda137f,'+email
							    }],
							    note_to_payer: 'Contact us for any questions on your order.'
							},
							redirect_urls: {
					          	return_url: 'https://staging.fnarena.com/index.php/signup-thank-you/'
					        }
						});
					},

					/*onAuthorize: function(data, actions) {
						return actions.payment.execute()
					    .then(function (param) {
					    	//alert('https://staging.fnarena.com/index.php/signup-thank-you/');
					    	//actions.redirect();
					    	window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
					    });

					},*/
					onApprove: function(data, actions) {
				      // This function captures the funds from the transaction.
				      clear_cookies();
				      return actions.order.capture().then(function(details) {
				        // This function shows a transaction success message to your buyer.
				        window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
				      });
				    },
					onCancel: function (data, actions) {
					   //return actions.redirect();
					},
					onError: function(data, actions){
					   //document.getElementById("error-message").style.display = "block";
					   alert('error');
					}

				}, '#paypal-button-container-37');
			})();

			function clear_cookies(){
				jQuery.ajax({
			    	url: "https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_clear_cookies.php"
			  	});
			}
			</script>

        <div class='large-12 medium-12 small-12 columns bottoms text-center hide checkout_all' id='checkout_prod_36'>
		  		<div class='large-3 medium-4 small-12 columns'><h2 class='martop-5 marbot-5' style='border: none;'>1 MONTH</h2>					<h3 class="marbot-0" style="color: #1C9ACC"><sup>AUS</sup> 79.00</h3>
				</div>
				<div class="large-4 medium-8 small-12 columns">
					<button id="checkout-button-36" class="stripe-button-el"><span style="margin-right: 10px">PAY NOW</span> <img src="/wp-content/uploads/2017/10/visa.jpg" width="50"> <img src="/wp-content/uploads/2017/10/mastercard.jpg" width="50"></button>
					<p><i class="fa fa-check" style="vertical-align:bottom;font-size:20px;color:#9bd636"></i> No additional bank fees</p>
				</div>
				<div class="flex-break"></div>
				<div class="large-2 medium-4 small-12 columns">
					<p style="margin:3px 0">or alternatively</p>
				</div>
				<div class="large-3 medium-8 small-12 columns">
	                	                <div id="paypal-button-container-36"></div>
	                	                <p style="margin-top:10px">Additional bank fees may apply</p>
	            </div>
					</div>

		

        <script>
        	//STRIPE
        	var checkoutButton = document.querySelector('#checkout-button-'+36);
			checkoutButton.addEventListener('click', function () {
				checkoutButton.disabled = true;
				var url = "https://staging.fnarena.com/wp-content/themes/fnarena";
				var cancelurl = "HDN7PykWo9SwTR5j0i0btpY%2BLSY6OittWxobCAPWLg1sxHZoRzrwxx8JNuUIV8Byuh6iJum0cjKId8au110xBBSDtG3v6pOTfnDEH8oSdghIWrayGeY08pvriuu24JHWoXPeVReL3nDcbRCUwuP9bw%3D%3D";
				fetch(url+"/session_stripe.php?pID=36&cancelurl="+cancelurl, { method: "POST", })
		        .then(function (response) {
		          return response.json();
		        })
		        .then(function (session) {
		          return stripe.redirectToCheckout({ sessionId: session.id });
		        })
		        .then(function (result) {
		          // If redirectToCheckout fails due to a browser or network
		          // error, you should display the localized error message to your
		          // customer using error.message.
		          if (result.error) {
		            alert(result.error.message);
		          }
		        })
		        .catch(function (error) {
		          console.error("Error:", error);
		        });
			});

			//PAYPAL
			var paypalForm = document.getElementById("frmPaypal"+36);
			var email = document.getElementById("email_signup").value;
			//console.log(email+" 0");

			// Render the PayPal button
			(function () {

				//var realEmail = document.getElementById("txtEmail").value;
				//alert(realEmail);

				paypal.Button.render({

					// Set your environment
					env: 'production', // sandbox | production

					//Set Australia
					locale: 'en_AU',

					// Specify the style of the button
					style: {
						label: 'pay',
						size:  'responsive',    // small | medium | large | responsive
						shape: 'rect',     // pill | rect
						color: 'gold',      // gold | blue | silver | black
						tagline: false
					},
					funding: {
					 	//allowed: [ paypal.FUNDING.CARD ],
					 	disallowed: [ paypal.FUNDING.CREDIT ]
					},
					// Show the buyer a 'Pay Now' button in the checkout flow
					commit: true,

					client: {
						sandbox:    'AZ1Ovrwy9CXe4Fna0zULt3xhRC2vA2DQhUVYpDHSE3hloJ274x8UXK5IgCwWqMhtBx-l7HvgnzU8QsoK',
						production: 'AXtJExwOxwuvPtUseLDkyWsxqa9AarMauaroU4-vqCi3DiCoXUA8MlZzydDcNYVWFQp3qknfOIkRUdGu'
					},

					/*missing info:
					-product name: echo ${"productName".$pID.$pm};
					-UUID (UniqueReference): ${"UniqueReference".$pID.$pm}."&MC_PRODUCTID=$pID
					*/

					payment: function(data, actions) {

						// Make a call to the REST api to create the payment
						return actions.payment.create({
							payment: {
								transactions: [{
									amount: {
										total: '79',
										currency: 'AUD'
									},
									custom: '36,a8795e3b92171baae1940494a287b148,'+email
							    }],
							    note_to_payer: 'Contact us for any questions on your order.'
							},
							redirect_urls: {
					          	return_url: 'https://staging.fnarena.com/index.php/signup-thank-you/'
					        }
						});
					},

					/*onAuthorize: function(data, actions) {
						return actions.payment.execute()
					    .then(function (param) {
					    	//alert('https://staging.fnarena.com/index.php/signup-thank-you/');
					    	//actions.redirect();
					    	window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
					    });

					},*/
					onApprove: function(data, actions) {
				      // This function captures the funds from the transaction.
				      clear_cookies();
				      return actions.order.capture().then(function(details) {
				        // This function shows a transaction success message to your buyer.
				        window.location.href = "https://staging.fnarena.com/index.php/signup-thank-you/";
				      });
				    },
					onCancel: function (data, actions) {
					   //return actions.redirect();
					},
					onError: function(data, actions){
					   //document.getElementById("error-message").style.display = "block";
					   alert('error');
					}

				}, '#paypal-button-container-36');
			})();

			function clear_cookies(){
				jQuery.ajax({
			    	url: "https://staging.fnarena.com/wp-content/themes/fnarena/action-forms/wp_clear_cookies.php"
			  	});
			}
			</script>

        			
			<div class="clearfix"></div>
			</div>
		</div>
		<!--<div class="large-12 medium-12 columns text-center" style="margin-top:-20px">
			<p style="font-size:15px;color:#ad0b32"><strong>Credit Card payments are being processed through PayPal - no account with PayPal is required</strong></p>
		</div>-->
		<div class="large-12 medium-12 columns text-left " style="padding:20px 15px;">
			<hr>
				<p align="justify">If you don't want to process your credit card details on the internet, send us an email at <a href="mailto:info@fnarena.com">info@fnarena.com</a></p>
				<p>By pressing one of the Sign Up buttons above, you agree with the following terms and conditions:</p>
				<p>"The Australian Broker Call is a summary that has been prepared independently of the brokers identified. 
					This service does not have the sponsorship, affiliation or approval of those brokers. 
					You will check the full text of the recommendations and consult your Licenced Advisor before making any investment decision." 
				</p>
				<p>
				  "All copyright is owned by the publisher. You will not copy, forward or disseminate anything, 
				  be in part or in whole, to any other person. Requests for reproduction can be directed at <a href='mailto:info@fnarena.com'>info@fnarena.com</a>." 
				</p>
			<hr>
		</div>
		
	</div>
	<div class="clearfix"></div>
</div>

<div class="large-12 medium-12 columns text-center bonusFeatureBook" style="background:#33548A;">
	<h2 class="white" style="border-bottom: 5px solid #1C9ACc; margin-bottom: 30px;">A SUBSCRIPTION TO FNARENA (6 OR 12 MONTHS) COMES WITH MULTIPLE BONUS FEATURES, INCLUDING:</h1>
	<div class='large-4 medium-6 small-12 columns text-left bottoms'>
		<div style='background-color: #1C9ACC; padding: 5px 20px;'>
			<h3 class="white">SPECIAL REPORT</h3>
		</div>
		<div class="text-center" style='background-color: #FFFFFF; min-height: 578px; padding: 20px 12px;'>
			<a target="_blank" href="https://www.fnarena.com/images/cover/Cover_Dividend_Investing_The_Smart_Way.jpg"><img class="cover bottoms" src="https://www.fnarena.com/images/cover/Cover_Dividend_Investing_The_Smart_Way_180px.jpg"/></a>
			<p class="text-left" style="padding:0px 10px;"><b>Dividend Investing, The Smart Way</b></p>
			<p class="text-left" style="padding:0px 10px;">Investing in equities for income involves a lot more than simply owning the banks and Telstra. A simple, straightforward guide to avoid the pitfalls and obvious traps, and build a more reliable, sustainable portfolio.</p>
		</div>
	</div>
	<div class='large-4 medium-6 small-12 columns text-left bottoms'>
		<div style='background-color: #FF8A00; padding: 5px 20px;'>
			<h3 class="white">SPECIAL REPORT</h3>
		</div>
		<div class="text-center" style='background-color: #FFFFFF; min-height: 578px; padding: 20px 12px;'>
			<a target="_blank" href="https://www.fnarena.com/images/cover/Cover_The_AUD_and_the_Australian_Share_Market_July_2013.jpg"><img class="cover bottoms" src="https://www.fnarena.com/images/cover/Cover_The_AUD_and_the_Australian_Share_Market_July_2013_180px.jpg"/></a>
			<p class="text-left" style="padding:0px 10px;"><b>AUD and the Australian Share Market</b></p>
			<p class="text-left" style="padding:0px 10px;">Which stocks and sectors benefit or suffer most from AUD movement? What drives the currency? What level is neutral for the Australian economy?</p>
		</div>
	</div>
	<div class='large-4 medium-6 small-12 columns text-left bottoms'>
		<div style='background-color: #1C9ACC; padding: 5px 20px;'>
			<h3 class="white">SPECIAL REPORT</h3>
		</div>
		<div class="text-center" style='background-color: #FFFFFF; min-height: 578px; padding: 20px 12px;'>
			<a target="_blank" href="https://www.fnarena.com/images/cover/Not_About_The_Banks.jpg"><img class="cover bottoms" src="https://www.fnarena.com/images/cover/Not_About_The_Banks_180px.jpg"/></a>
			<p class="text-left" style="padding:0px 10px;"><b>(Not) About The Banks</b></p>
			<p class="text-left" style="padding:0px 10px;">Cheaper-priced stocks do not by definition offer a better investment opportunity. How do we qualify 'Better Quality' and how does this contribute to sustainable investment returns? A case study on CBA and Australian banks answers many questions.</p>
		</div>
	</div>
	<div class="clearfix"></div>
</div>{"id":76509,"date":"2018-09-04T23:20:29","date_gmt":"2018-09-04T13:20:29","guid":{"rendered":"https:\/\/www.fnarena.com\/?page_id=76509"},"modified":"2019-08-21T18:56:26","modified_gmt":"2019-08-21T08:56:26","slug":"sign-up","status":"publish","type":"page","link":"https:\/\/staging.fnarena.com\/index.php\/sign-up\/","title":{"rendered":"SIGN UP"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row disable_element=&#8221;yes&#8221;][vc_column width=&#8221;3\/4&#8243;][vc_column_text][\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/4&#8243;][vc_column_text][\/vc_column_text][vc_column_text][\/vc_column_text][vc_column_text][\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text][\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row disable_element=&#8221;yes&#8221;][vc_column width=&#8221;3\/4&#8243;][vc_column_text][\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/4&#8243;][vc_column_text][\/vc_column_text][vc_column_text][\/vc_column_text][vc_column_text][\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text][\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"acf":[],"_links":{"self":[{"href":"https:\/\/staging.fnarena.com\/index.php\/wp-json\/wp\/v2\/pages\/76509"}],"collection":[{"href":"https:\/\/staging.fnarena.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.fnarena.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.fnarena.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.fnarena.com\/index.php\/wp-json\/wp\/v2\/comments?post=76509"}],"version-history":[{"count":0,"href":"https:\/\/staging.fnarena.com\/index.php\/wp-json\/wp\/v2\/pages\/76509\/revisions"}],"wp:attachment":[{"href":"https:\/\/staging.fnarena.com\/index.php\/wp-json\/wp\/v2\/media?parent=76509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}