Paypal button don't work properly on android and iOS?

Hi guys,

I just created a paypal button,
It works properly on desktop but doesn’t work on mobile devices.

Here are the codes

<?php
		if(isset($_POST['pay_now'])){
			//echo '<div class="wait">PayPal is processing the payment, please wait...</div>';
			/*echo '<div class="loader">
					<div></div>
					<div></div>
					<div></div>
					<div></div>
					<div></div>
				</div>';
			 * 
			 */
			echo infotutsPaypal($data);
		}else{
?>
		
			

		<div class="paypalbutleft">
			<form id='paypal-info' method='post' action='#'>
				<br>
				<input class="paypalbut" name='pay_now' id='pay_now' value='Pay' type="image" src="<?php echo SITE_URL.'/sandbox/paypal-ipn/paypal-button.jpg';?>" alt="Submit" width="120" height="70">
						
			</form>
		</div>
		
		
		
<?php
}	
?>	

thanks in advance.

How to fix this problem so it works also properly on mobile devices?

Dear admin
I mistakenly posted this here in CSS. sorry.
Kindly move to PHP please.

Moved :thumbsup: .

I already solved this.
The reason it doesn’t redirect properly on paypal website.
Because the submit action value is hash tag #
I changed it to $_SERVER[‘php_self’]
SOLVED!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.