Sandbox Paypal not woking on live server!

GabszyztyLe
Contributor
Contributor

My sandbox paypal is working fine in my localhost. But after i transfer it to live server (Online website) whenever i click the paypal payment button. It give's me an error messages like shopping cart is empty. I already changed the IP's of this.

<input type="hidden" name="return" value="http://127.0.0.1/GabszyStore2/payment_success.php"/>
<input type="hidden" name="notify_url" value="http://127.0.0.1/GabszyStore2/payment_success.php">
<input type="hidden" name="cancel_return" value="http:///127.0.0.1/GabszyStore2/index.php"/>

 

and my return url

 

to my live server IP.

 

please help

 

 

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="paypalForm">
<input type="hidden" name="cmd" value="_cart">

<input type="hidden" name="business" value="my email">
<input type="hidden" name="upload" value="1">';

 

Login to Me Too
1 REPLY 1

MTS_Justin
Moderator
Moderator
Hello,

Have you modified the URL when the transaction request is being sent after adding the code to your live site ?

Sandbox : <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="paypalForm">

Production : <form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="paypalForm">

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.