| @@ 95-103 (lines=9) @@ | ||
| 92 | /** |
|
| 93 | * @return \Illuminate\Http\JsonResponse |
|
| 94 | */ |
|
| 95 | public function callback() |
|
| 96 | { |
|
| 97 | $this->repository->notification('MPESA Callback: *C2B*', true); |
|
| 98 | $resp = [ |
|
| 99 | 'ResultCode' => 0, |
|
| 100 | 'ResultDesc' => 'Callback received successfully', |
|
| 101 | ]; |
|
| 102 | return response()->json($resp); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * @param Request $request |
|
| @@ 123-131 (lines=9) @@ | ||
| 120 | /** |
|
| 121 | * @return \Illuminate\Http\JsonResponse |
|
| 122 | */ |
|
| 123 | public function validatePayment() |
|
| 124 | { |
|
| 125 | $this->repository->notification('MPESA Validate Payment URL: *C2B*'); |
|
| 126 | $resp = [ |
|
| 127 | 'ResultCode' => 0, |
|
| 128 | 'ResultDesc' => 'Validation passed successfully', |
|
| 129 | ]; |
|
| 130 | return response()->json($resp); |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||