for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Samerior\MobileMoney\Mpesa\Events;
use Samerior\MobileMoney\Mpesa\Database\Entities\MpesaC2bCallback;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
/**
* Class C2BConfirmationEvent
* @package Samerior\MobileMoney\Mpesa\Events
*/
class C2bConfirmationEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
* @var MpesaC2bCallback
public $transaction;
* @var array
public $mpesa_response;
* C2BConfirmationEvent constructor.
* @param MpesaC2bCallback $c2bCallback
* @param array $response
public function __construct(MpesaC2bCallback $c2bCallback, array $response = [])
$this->transaction = $c2bCallback;
$this->mpesa_response = $response;
}