Shopping Cart Tutorial PHP Shopping Cart Tutorial
Learn how to create an online store with PHP and MySQL
Free shopping cart    Download:
Shop-Script FREE
Shop-Script FREE User Guide (PDF; 0 Kb)
View Live Demo    View online store demo
 Introduction
 Basic concepts
 Technologies
 File structure
 Database structure
 Back end
   Password protection
   Products catalog: structure
   Product catalog: viewing
   Managing categories
   Managing products
   Special offers
   Managing orders
 Front end
   Viewing products catalog
   Product search
   Shopping cart
   Checkout
   PayPal integration
 Security
 Live Demo
 Author
 Terms Of Use

Shopping cart software

 

Intergrating PayPal payment option

Instegration with PayPal Website Payments Standard is reviewed (https://www.paypal.com/cgi-bin/webscr?cmd=_wp-standard-overview-outside).

In order to add PayPal payment option to your store you only need to add PayPal "Buy now!" button to the last page of checkout process (the page that is shown after the order has been saved to the database).
This is how this button can look (template file order_place.tpl.html in Shop-Script FREE shopping cart software):

PayPal integration tutorial
<form action="https://www.paypal.com/cgi-bin/webscr" method="POST">

To pay with PayPal now please click on the PayPal icon below:

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="your@paypal.email">
<input type="hidden" name="item_name" value="Order #{$order_id}">
<input type="hidden" name="amount" value="{$order_amount}">
<input type="hidden" name="currency_code" value="{$currency_iso_3}">
<input type="image" name="submit" src="http://images.paypal.com/images/x-click-but01.gif" alt="Pay with PayPal">

</form>

Nothing else is required - you are now ready to accept PayPal payments.

Detailed Integration Guide with the payment form specifications can be found on PayPal website:
https://www.paypal.com/en_US/pdf/PP_WebsitePaymentsStandard_IntegrationGuide.pdf

 

 


Copyright © 2006 WebAsyst LLC