Set paid status in payment call in rider api #424

This commit is contained in:
Kendrick Chan 2020-06-21 16:46:11 +08:00
parent 1e3b621a91
commit f519ec01dc

View file

@ -1022,6 +1022,9 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
$mode = $req->request->get('mode_of_payment');
$jo->setModeOfPayment($mode);
// set status to paid
$jo->setStatus(JOStatus::PAID);
// set invoice to paid
$jo->getInvoice()->setStatus(InvoiceStatus::PAID);