Chapter 9. Building the Payment Module

The payment module provides a basis for further sales functionality in our web shop. It will enable us to actually choose a payment method when we reach the checkout process of the upcoming sales module. The payment methods can generally be of various types. Some can be static, like Check Money and Cash on Delivery, while others can be regular credit cards like Visa, MasterCard, American Express, Discover, and Switch/Solo. Throughout this chapter we will address both types.

In this chapter, we will be looking into the following topics:

  • Requirements
  • Dependencies
  • Implementation
  • Unit testing
  • Functional testing

Requirements

Our application requirements, defined under Chapter 4, Requirement Specification for Modular Web ...

Get Modular Programming with PHP 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.