Resolve "Support mode of payment in job order api calls" #954
1 changed files with 4 additions and 1 deletions
|
|
@ -737,6 +737,7 @@ class APIController extends Controller
|
||||||
'long',
|
'long',
|
||||||
'lat',
|
'lat',
|
||||||
'warranty',
|
'warranty',
|
||||||
|
'mode_of_payment',
|
||||||
];
|
];
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$res = $this->checkParamsAndKey($req, $em, $required_params);
|
$res = $this->checkParamsAndKey($req, $em, $required_params);
|
||||||
|
|
@ -749,7 +750,9 @@ class APIController extends Controller
|
||||||
->setDeliveryInstructions('')
|
->setDeliveryInstructions('')
|
||||||
->setTier1Notes('')
|
->setTier1Notes('')
|
||||||
->setTier2Notes('')
|
->setTier2Notes('')
|
||||||
->setDeliveryAddress('Set by mobile application');
|
->setDeliveryAddress('Set by mobile application')
|
||||||
|
// TODO: error check for valid mode of payment
|
||||||
|
->setModeOfPayment($req->request->get('mode_of_payment'));
|
||||||
|
|
||||||
// customer
|
// customer
|
||||||
$cust = $this->session->getCustomer();
|
$cust = $this->session->getCustomer();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue