10: Checking Out
The next step in the evolution of the Coffee site is to incorporate the payment processing system that will allow customers to complete their order. For this project, I’ve chosen Authorize.net as the payment processor. The first several pages of the chapter talk about Authorize.net and walk you through setting up a test account there. Once you have a test account, you can write the entire checkout process.
There are four parts to the checkout process:
1. Take and validate the shipping information.
2. Take and validate the billing information.
3. Process the payment.
4. Wrap it up (send an email, create a receipt, and so on).
This chapter probably has the most complicated code of any in the book. But this chapter also conveys ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access