Set paid status in payment call in rider api #424
This commit is contained in:
parent
1e3b621a91
commit
f519ec01dc
1 changed files with 3 additions and 0 deletions
|
|
@ -1022,6 +1022,9 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
||||||
$mode = $req->request->get('mode_of_payment');
|
$mode = $req->request->get('mode_of_payment');
|
||||||
$jo->setModeOfPayment($mode);
|
$jo->setModeOfPayment($mode);
|
||||||
|
|
||||||
|
// set status to paid
|
||||||
|
$jo->setStatus(JOStatus::PAID);
|
||||||
|
|
||||||
|
|
||||||
// set invoice to paid
|
// set invoice to paid
|
||||||
$jo->getInvoice()->setStatus(InvoiceStatus::PAID);
|
$jo->getInvoice()->setStatus(InvoiceStatus::PAID);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue