Prev | Current Page 368 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

link_to_add_product}">
...





You implemented similar changes to product.php and product.tpl, to create the Add to Cart buttons of
the product details pages. To see what happens when one of these buttons is clicked, we used the Firefox
LiveHTTPHeaders plug-in. We highlighted, in Figure 9-5, the URL loaded when the button was clicked and
the URL the request was 302 redirected to.
CHAPTER 9 ?–  RECEIVING PAYMENTS USING PAYPAL 263
Figure 9-5. Loading the PayPal shopping cart
After a customer makes a payment on the web site, an e-mail notification is sent to the e-mail address registered
on PayPal and also to the customer. Your PayPal account will reflect the payment, and you can view the transaction
information in your account history or as a part of the history transaction log.
After PayPal confirms the payment, you can ship the products to your customer. If you decide to use PayPal for
your own web site, make sure you learn about all of its features. For example, you can teach PayPal to automatically
calculate shipping costs and tax for each order.
Using the PayPal Single Item Purchases Feature
Single Item Purchases is a PayPal feature that allows you to send the visitor directly to a payment
page instead of the PayPal shopping cart. The PayPal shopping cart will become useless
in Chapter 12, where you??™ll create your own shopping cart.


Pages:
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380