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
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 818a8fff30 - Show all commits

View file

@ -4,12 +4,14 @@ namespace App\Ramcar;
class CMBModeOfPayment extends NameValue
{
const CASH = 'cash';
const SHOPEE = 'shopee';
const LAZADA = 'lazada';
const CREDIT_CARD = 'credit_card';
const ONLINE_TRANSFER = 'online_transfer';
const COLLECTION = [
'cash' => 'Cash',
'shopee' => 'Shopee',
'lazada' => 'Lazada',
'credit_card' => 'Credit Card',

View file

@ -1256,7 +1256,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
// 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::CREDIT_CARD;
$mode = CMBModeOfPayment::CASH;
$jo->setModeOfPayment($mode);
// generate new invoice