how to integrate paypal payment gateway in php

At Paypal account first merchant have to create Paypal account.

Send the data to Paypal:

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

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="Your merchant account">
<input type="hidden" name="currency_code" value="USD">

<input type="hidden" name="item_name" value="Shopping Products">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="amount" value="20">
 
<input type="hidden" name="return" class="inputurlbox" 
value="success url">
<input type="hidden" name="cancel_return" class="inputurlbox" 
value="cancel url">

<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
 
 </form>



In Paypal page user have to login with Paypal account to pay.


For Testing Using Paypay Form action URL is: 
https://www.sandbox.paypal.com/cgi-bin/webscr

express-checkout-hero-sg paypal-paynow-button-300x89

Leave a Reply

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