Resolve "Resq - message prompt for non-serviceable area" #1353

Merged
korina.cordero merged 176 commits from 463-resq-message-prompt-for-non-serviceable-area into 465-resq-august-13-release 2020-08-12 05:41:57 +00:00
Showing only changes of commit 21ae94c5b6 - Show all commits

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