Codeigniter Snippet to save webhook payload to dB and update wallet field of user table

Please I need a very simple logic to read webhook notification payload, save the different parameters to dB and update user wallet field. The language is codeigniter. Thanks

HI @echelon_umeh

Thank you for choosing Flutterwave.

My name is Abraham and i would be helping you today.

You need to expose a route to receive notification on a payment event. hooks are sent as POST requests. More information regarding Webhooks can be found here. You can also look into using our PHP SDK

Regards