Skip to content

Commit

Permalink
Support for Daraja API v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin committed Jun 7, 2022
1 parent e5981b9 commit 70a982d
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 84 deletions.
42 changes: 35 additions & 7 deletions config/mpesa.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,28 @@

return [

//Specify the environment mpesa is running, sandbox or production
/*-----------------------------------------
|Mpesa environment: sandbox or production
|------------------------------------------
*/
'mpesa_env' => 'sandbox',

/*-----------------------------------------
|The App consumer key
|The App consumer key for C2B and B2c (Bulk)
|------------------------------------------
*/
'consumer_key' => '',
'bulk_consumer_key' => '',

/*-----------------------------------------
|The App consumer Secret
|The App consumer Secret for C2B and B2c (Bulk)
|------------------------------------------
*/
'consumer_secret' => '',
'bulk_consumer_secret' => '',

/*-----------------------------------------
|The paybill number
|The paybill number / till number
|------------------------------------------
*/
'paybill' => ,
Expand All @@ -37,7 +41,7 @@
'lipa_na_mpesa_passkey' => '',

/*-----------------------------------------
|Initiator Username.
|Initiator Username for B2C
|------------------------------------------
*/
'initiator_username' => '',
Expand All @@ -58,7 +62,7 @@
|Lipa na Mpesa Online callback url
|------------------------------------------
*/
'lnmocallback' => '',
'lnmo_callback_url' => '',

/*-----------------------------------------
|C2B Validation url
Expand All @@ -82,7 +86,31 @@
|B2C results url
|------------------------------------------
*/
'b2c_result' => ''
'b2c_result' => '',

/*-----------------------------------------
|B2C Status Timeout url
|------------------------------------------
*/
'b2c_status_timeout' => '',

/*-----------------------------------------
|B2C status callback url
|------------------------------------------
*/
'b2c_status_callback' => '',

/*-----------------------------------------
|Reversal result callback url
|------------------------------------------
*/
'reversal_result_callback' => '',

/*-----------------------------------------
|Reversal timeout callback url
|------------------------------------------
*/
'reversal_timeout_callback' => ''


];
Loading

0 comments on commit 70a982d

Please sign in to comment.