Skip to content

Commit

Permalink
UPDATE: B2C docs. Plus I forgot to update facade accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
maina401 committed Jun 8, 2023
1 parent c77bb3d commit 4a4249c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ return [
|------------------------------------------
*/
'reversal_timeout_url' => env('MPESA_REVERSAL_TIMEOUT_URL'),
/*-----------------------------------------
|Mpesa B2C urls
|------------------------------------------
*/
'b2b_result_url' => env('MPESA_B2B_RESULT_URL'),
'b2b_timeout_url' => env('MPESA_B2B_TIMEOUT_URL'),
];

```
Expand Down
5 changes: 4 additions & 1 deletion config/mpesa.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@
*/
'reversal_timeout_url' => env('MPESA_REVERSAL_TIMEOUT_URL'),

//b2b
/*-----------------------------------------
|Mpesa B2C urls
|------------------------------------------
*/
'b2b_result_url' => env('MPESA_B2B_RESULT_URL'),
'b2b_timeout_url' => env('MPESA_B2B_TIMEOUT_URL'),
];
1 change: 1 addition & 0 deletions src/Facades/Mpesa.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @method static \Iankumu\Mpesa\Mpesa stkpush($phonenumber, $amount, $account_number,$callbackurl = null)
* @method static \Iankumu\Mpesa\Mpesa stkquery($checkoutRequestId)
* @method static \Iankumu\Mpesa\Mpesa b2c($phonenumber, $command_id, $amount, $remarks)
* @method static \Iankumu\Mpesa\Mpesa b2b($receiver_shortcode, $command_id, $amount, $remarks, $account_number=null)
* @method static \Iankumu\Mpesa\Mpesa validated_b2c($phonenumber, $command_id, $amount, $remarks,$id_number)
* @method static \Iankumu\Mpesa\Mpesa c2bregisterURLS($shortcode)
* @method static \Iankumu\Mpesa\Mpesa c2bsimulate($phonenumber, $amount, $shortcode, $command_id, $account_number = null)
Expand Down

0 comments on commit 4a4249c

Please sign in to comment.