Professional CodeIgniter

(singke) #1

Chapter 10: Launch


297


? >
< /table >
< /form >
< div id=’ajax_msg’ > < /div >
< /div >

As a visual reminder, Figure 10 - 1 shows what the shoppingcart view might look like when loaded in a
browser.


Figure 10 - 1

What you want is for the user to click the Checkout button and transfer all the information in the PHP
session array called cart to a checkout process. For simplicity ’ s sake, you ’ re going to integrate the cart
with Google Checkout, which is Claudia ’ s preferred vendor.


There are many vendors out there that you can integrate a shopping cart with. The two best - known ones
are PayPal and Google Checkout, but others, like PayPro Flow (from VeriSign) and Authorize.Net, also
have significant followings. All of the systems work in fairly similar ways: You prepare the information
to their specifications, and then you pass along that information in a way they can easily parse. Most of
the lessons learned in this chapter will apply generally to most of these systems.
Free download pdf