Showing posts with label paypal help. Show all posts
Showing posts with label paypal help. Show all posts

Saturday, July 24, 2010

Paypal Integration

How to Integrate with Paypal for our application is shown below.


<form method='post' action='https://www.paypal.com/cgi-bin/webscr' id="test">   
         
           <input type="hidden" name="cmd" value="_xclick" />
           <input type="hidden" name="business" value="businessaccount@mail.com" />
           <input type="hidden" name="cbt" value="* * * Return to Bearmanor Media Bizland * * *">     
           <input type="hidden" name="item_name" value="{ item_name }" /><!--change the { item name } give the item name which you want to show on paypal  -->
           <input type="hidden" name="amount" value="{total_amount_}" /><!--change the {total_amount_} give the total amount which you want to show on paypal -->
           <input type="hidden" name="no_shipping" value="1" />
           <input type="hidden" name="rm" value="2">
           <input type="hidden" name="return" value="{return url}" /><!--change the {return url} give the url to which it should redirect after completing the payment -->
           <input type="hidden" name="cpp_header_image" value="{bannerimage}" /><!--change the {bannerimage} give the url of banner if you have otherwise change it to empty such as value=""  -->
     <input type="hidden" name="notify_url" value="">          
           <input type="hidden" name="currency_code" value="USD" />          
           <input type="hidden" name="custom" value="{order_id}" /> 
  
           <input type="hidden" name="cancel_return" value="{Cancel page(Ex:-http://www.mysite.com/CancelPayment.php}" />     
           <input type="image" id='submit' src="paynow.jpg" border="0" alt="Make payments with PayPal - it's fast, free and secure!" />
        
           
     </form>