From e1bc281ab6a89994c323bff7e78a72e14296151b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 6 Jul 2024 14:21:25 -0400 Subject: [PATCH] missing params --- www-api/app/Controllers/WrenchHooks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www-api/app/Controllers/WrenchHooks.php b/www-api/app/Controllers/WrenchHooks.php index bbda055b..67824e72 100644 --- a/www-api/app/Controllers/WrenchHooks.php +++ b/www-api/app/Controllers/WrenchHooks.php @@ -52,13 +52,14 @@ class WrenchHooks extends BaseController log_message('critical', "WrenchHooks flutter Kafka fail => ".$e->getMessage()); } - - if ( isset( $in["event"]) & isset($in["data"]) ){ $inx = $in["data"]; $inx["txRef"] = $inx["tx_ref"]; $inx["orderRef"] = $inx["flw_ref"]; $inx["flwRef"] = $inx["flw_ref"]; + $inx["appfee"] = $inx["app_fee"]; + $inx["customer"]["AccountId"] =$inx["customer"]["id"]; + $inx["customer"]["fullName"] = $inx["customer"]["name"]; } else{ $inx =$in; @@ -82,7 +83,6 @@ class WrenchHooks extends BaseController log_message('critical', "WrenchHooks flutter fail => ".$e->getMessage()); } - $data = [ "event_type" => $inx["event.type"], "status" => $inx["status"],