src/Mpesa/Laravel/Http/Controllers/MpesaWebHookController.php
/**
     * Use this function to process the C2B Confirmation result callback.
     *
     * @param Request $request
     *
     * @return \Illuminate\Http\Response
     */
Use this function to process the C2B Confirmation result callback.
@param Request $request

@return \Illuminate\Http\Response
Use this function to process the C2B Confirmation result callback . @param Request $request @return \ Illuminate \ Http \ Response
public function processC2BRequestConfirmation(Request $request)
    {
        $data = $request->input();
        $confirmation = new Confirmation($data);
        event(new C2BConfirmed($confirmation));
        $this->logRequest($data, "-------- C2B Confirmation Request --------\r\n");
        return $this->responseResult();
    }
public function processC2BRequestConfirmation ( Request $ request ) { $ data = $ request -> input ( ) ; $ confirmation = new Confirmation ( $ data ) ; event ( new C2BConfirmed ( $ confirmation ) ) ; $ this -> logRequest ( $ data , " -------- C2B Confirmation Request -------- \r \n " ) ; return $ this -> responseResult ( ) ; }
Use this function to process the C2B Confirmation result callback.
Use this function to process the C2B Confirmation result callback .