diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index c76d88b5..2755a804 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -707,6 +707,12 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface $after_images['others'] = $other_images; } + // customer email + if ($jo->getMeta('customer_email') == null) + $cust_email = ''; + else + $cust_email = $jo->getMeta('customer_email'); + $data = [ 'id' => $jo->getID(), 'service_type' => $jo->getServiceType(), @@ -758,6 +764,9 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface 'arrive_photos' => $before_images, 'finish_photos' => $after_images, + // customer email + 'customer_email' => $cust_email, + // END: cmb speicifc details ];