$order_id .
'&item_number=' . $order_id .
'&amount=' . $this->mTotalAmount .
'¤cy_code=' . PAYPAL_CURRENCY_CODE .
'&return=' . PAYPAL_RETURN_URL .
'&cancel_return=' . PAYPAL_CANCEL_RETURN_URL;
// Redirection to the payment page
header('Location: ' . $redirect);
exit();
}
You??™ll learn how to work with this feature in Chapter 14.
CHAPTER 9 ?– RECEIVING PAYMENTS USING PAYPAL 265
Summary
In this chapter, you saw how to integrate PayPal into an e-commerce site??”a simple payment
solution that many small businesses choose so they don??™t have to process credit card or payment
information themselves.
First, we listed some of the alternatives to PayPal, before guiding you through the creation
of a new PayPal account. We then covered how to integrate PayPal in Phases I and II of development,
first discussing a shopping cart, a custom checkout mechanism.
In the next chapter, we will move on to look at a catalog administration page for
TShirtShop.
CHAPTER 9 ?– RECEIVING PAYMENTS USING PAYPAL 266
Catalog Administration:
Departments and Categories
In the previous chapters, you worked with catalog information that already existed in the
database. You have probably inserted some records yourself, or maybe you downloaded the
department, category, and product information from this book??™s accompanying source code.
Obviously, both ways are unacceptable for a real web site, so you need to write some code to
allow easy management of your data.
Pages:
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382