Modify the Payment Method Interface:
Add a new Boolean property
onlinePayment
to the interface that categorizes each payment method as online or physical.
Update Payment Method Constants:
Update the constants that implement this interface adding the
onlinePayment
method here, the configuration should be:
const | onlinePayment value |
---|---|
PAYPAL_PAYMENT_METHOD_PLACEHOLDER | true |
BLIK_PAYMENT_METHOD_PLACEHOLDER | true |
SODEXO_VOUCHER_PAYMENT_METHOD_PLACEHOLDER | false |
CHEQUE_GOURMET_VOUCHER_PAYMENT_METHOD_PLACEHOLDER | false |
SODEXO_PAYMENT_METHOD_PLACEHOLDER | true |
CHEQUE_GOURMET_PAYMENT_METHOD_PLACEHOLDER | true |
PAYMENT_ON_DELIVERY_CARD_PAYMENT_METHOD_PLACEHOLDER | false |
BIZUM_PAYMENT_METHOD_PLACEHOLDER | true |
WAYLET_PAYMENT_METHOD_PLACEHOLDER | true |
Create a Verification Method:
Implement a method to verify if a payment type is online. This method should also ensure that cash (not listed in the constants) is always considered
false
.
0 Comments