Change default mode of payment to credit card. #424
This commit is contained in:
parent
093a249689
commit
21ae94c5b6
1 changed files with 2 additions and 1 deletions
|
|
@ -1246,9 +1246,10 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
||||||
$trade_in = null;
|
$trade_in = null;
|
||||||
|
|
||||||
// check mode of payment
|
// check mode of payment
|
||||||
|
// TODO: defaulting to credit_card for now if mode of payment is invalid
|
||||||
$mode = $req->request->get('mode_of_payment');
|
$mode = $req->request->get('mode_of_payment');
|
||||||
if (!CMBModeOfPayment::validate($mode))
|
if (!CMBModeOfPayment::validate($mode))
|
||||||
$mode = CMBModeOfPayment::CASH;
|
$mode = CMBModeOfPayment::CREDIT_CARD;
|
||||||
$jo->setModeOfPayment($mode);
|
$jo->setModeOfPayment($mode);
|
||||||
|
|
||||||
// generate new invoice
|
// generate new invoice
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue