Sandbox URL – www.sandbox.paypal.com/cgi-bin/webscr
Actual URL – www.sandbox.paypal.com/cgi-bin/webscr
Paypal Payment Code
<html>
<body>
<form action=”https://www.sandbox.paypal.com/cgi-bin/webscr”
method=”post” name=”frmPayPal1″><input type=”hidden”
name=”business” value=”PAYPAL_ID” />
<input type=”hidden” name=”cmd” value=”_xclick” />
<input type=”hidden” name=”item_name” value=”Test Product” />
<input type=”hidden” name=”item_number” value=”1″ />
<input type=”hidden” name=”amount” value=”15″ />
<input type=”hidden” name=”no_shipping” value=”2″ />
<input type=”hidden” name=”currency_code” value=”USD” />
<input type=”hidden” name=”handling” value=”0″ />
<input type=”hidden” name=”cancel_return” value=”CANCEL_URL” />
<input type=”hidden” name=”return” value=”RETURN_URL” />
<input type=”image” name=”submit”
src=”https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif”
/></form></body>
</html>
<input type=”hidden” name=”item_name” value=”Test Product”>
Specifies the item name of the product, for which are going to pay. If the above line is not specified then item name have to be given by bill payer while payment.
<input type=”hidden” name=”amount” value=”15″>
Specifies the item price. If the above line is not specified then item price have to be given by bill payer while payment.
<input type=”hidden” name=”no_shipping” value=”2″>
Specifies the number of items. If the above line is not specified then number of items have to be given by bill payer while payment.
PAYPAL_ID
Paypal id of the amount receiver.
CANCEL_URL
The URL, which will be redirected to when the user cancels the payment.
RETURN_URL
The URL, which will be redirected to when the payment completed.
Comments
Add New Comment