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="" 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="" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">

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

For Testing Using Paypay Form action URL is:

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

Leave a Reply

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