Interface PaymentMethodStrategy

All Known Implementing Classes:
CreditCardPaymentMethod, PayPalPaymentMethod, PhoneNumberBillPaymentMethod

public interface PaymentMethodStrategy
PaymentMethodStrategy is an interface that represents a generic payment method, this is used to implement Strategy Method design pattern
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    pay(double paymentAmount)
     
  • Method Details

    • pay

      boolean pay(double paymentAmount)
    • checkPaymentMethodData

      boolean checkPaymentMethodData()