This commit is contained in:
CHIEFSOFT\ameye
2023-07-27 21:53:58 -04:00
parent a47e29a319
commit 697b971472
2 changed files with 54 additions and 0 deletions
+4
View File
@@ -194,10 +194,14 @@ $routes->post('/en/wrench/api/v1/getmedia', 'WrenchMedia::apigate');
$routes->get('/en/wrench/api/v1/getmedia', 'WrenchMedia::apigate');
$routes->get('/en/wrench/hooks/v1/flutter', 'WrenchHooks::flutter');
$routes->get('/en/wrench/hooks/v1/stripes', 'WrenchHooks::stripes');
$routes->post('/en/wrench/hooks/v1/flutter', 'WrenchHooks::flutter');
$routes->post('/en/wrench/hooks/v1/stripes', 'WrenchHooks::stripes');
// cron jobs ------------ ===== ------------
$routes->post('/en/wrench/api/v1/cron', 'WrenchCrons::apigate');
/*
+50
View File
@@ -35,6 +35,56 @@ class WrenchHooks extends BaseController
log_message('critical', "WrenchHooks flutter");
log_message('critical', "WrenchHooks ***************************** flutter");
log_message('critical', "WrenchHooks-CALL PREPARE DATA".serialize($in) );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["event.type"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["status"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["txRef"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["flwRef"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["orderRef"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["amount"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["appfee"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["customer"]["id"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["customer"]["AccountId"] );
log_message('critical', "WrenchHooks-CALL ********** RETURN *************** DATA".$in["customer"]["fullName"] );
}
}
/*
*{
s:2:"id";i:4490321;
s:5:"txRef";s:13:"1690507667625";
s:6:"flwRef";s:41:"FLW-MOCK-8705ee76a3efc2ae124c783f79f8e681";
s:8:"orderRef";s:25:"URF_1690507780219_8700835";
s:11:"paymentPlan";N;
s:11:"paymentPage";N;
s:9:"createdAt";s:24:"2023-07-28T01:29:40.000Z";
s:6:"amount";i:555;
s:14:"charged_amount";i:555;
s:6:"status";s:10:"successful";
s:2:"IP";s:12:"54.75.161.64";
s:8:"currency";s:3:"NGN";
s:6:"appfee";d:7.77;
s:11:"merchantfee";i:0;
s:16:"merchantbearsfee";i:1;
s:8:"customer";a:9:
{
s:2:"id";i:2158727;
s:5:"phone";N;
s:8:"fullName";s:15:"Last11 Olusesan";
s:13:"customertoken";N;
s:5:"email";s:20:"ses66181+1@gmail.com";
s:9:"createdAt";s:24:"2023-07-28T01:29:40.000Z";
s:9:"updatedAt";s:24:"2023-07-28T01:29:40.000Z";
s:9:"deletedAt";N;
s:9:"AccountId";i:1017511;
}
s:6:"entity";a:4:
{
s:5:"card6";s:6:"553188";
s:10:"card_last4";s:4:"2950";
s:16:"card_country_iso";s:2:"NG";
s:9:"createdAt";s:24:"2020-04-24T15:19:22.000Z";
}
s:10:"event.type"; s:16:"CARD_TRANSACTION";
}
*/