From 21ae94c5b69e9e2af359dd4b758421a66cfbbac2 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Tue, 23 Jun 2020 06:06:15 +0000 Subject: [PATCH] Change default mode of payment to credit card. #424 --- src/Service/RiderAPIHandler/CMBRiderAPIHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index 597869c4..2dbb4465 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -1246,9 +1246,10 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface $trade_in = null; // check mode of payment + // TODO: defaulting to credit_card for now if mode of payment is invalid $mode = $req->request->get('mode_of_payment'); if (!CMBModeOfPayment::validate($mode)) - $mode = CMBModeOfPayment::CASH; + $mode = CMBModeOfPayment::CREDIT_CARD; $jo->setModeOfPayment($mode); // generate new invoice