From f519ec01dc1dc60c6ab8002515a3d5d085d614cb Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sun, 21 Jun 2020 16:46:11 +0800 Subject: [PATCH] Set paid status in payment call in rider api #424 --- src/Service/RiderAPIHandler/CMBRiderAPIHandler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index abbb7dde..c76d88b5 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -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);