Simple Paypal Payment Integration Tutorial

By | May 17, 2014

All of us know that Paypal is an one of the easiest way of electronic payment. Here is the Simple Paypal Payment Integration Tutorial.
Sandbox URL – https://www.sandbox.paypal.com/cgi-bin/webscr
Actual URL – https://www.sandbox.paypal.com/cgi-bin/webscr

 

 

Paypal Payment Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<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.

Leave a Reply

Your email address will not be published. Required fields are marked *

intersoluble-archiepiscopacy