src/Mpesa/Laravel/Http/Controllers/MpesaWebHookController.php
/**
     * Handle business to customer charge confirmation.
     *
     * @param Request $request
     **/
Handle business to customer charge confirmation.
@param Request $request
Handle business to customer charge confirmation . @param Request $request
public function handleB2CPayoutResult(Request $request)
    {
        $data = $request->input('Result', []);
        $result = new PaymentReceived($data);
        event(new B2CResultReceived($result));
        $this->logRequest($data, "-------- B2C Payment Result Request --------\r\n");
        return $this->responseResult();
    }
public function handleB2CPayoutResult ( Request $ request ) { $ data = $ request -> input ( 'Result' , [ ] ) ; $ result = new PaymentReceived ( $ data ) ; event ( new B2CResultReceived ( $ result ) ) ; $ this -> logRequest ( $ data , " -------- B2C Payment Result Request -------- \r \n " ) ; return $ this -> responseResult ( ) ; }
Handle business to customer charge confirmation.
Handle business to customer charge confirmation .