Change default mode of payment to credit card. #424

This commit is contained in:
Korina Cordero 2020-06-23 06:06:15 +00:00
parent 093a249689
commit 21ae94c5b6

View file

@ -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