@@ -40,33 +40,33 @@ public function status($tracking_id)
4040 return $ this ->send_request ('POST ' ,'/send-money/status/ ' , $ payload );
4141 }
4242
43- public function mpesa ($ currency , $ transactions , $ callback_url =null )
43+ public function mpesa ($ currency , $ transactions , $ callback_url =null , $ wallet_id = null )
4444 {
4545 $ provider = "MPESA-B2C " ;
46- return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =null );
46+ return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =$ callback_url , $ wallet_id = $ wallet_id );
4747 }
4848
49- public function mpesa_b2b ($ currency , $ transactions , $ callback_url =null )
49+ public function mpesa_b2b ($ currency , $ transactions , $ callback_url =null , $ wallet_id = null )
5050 {
5151 $ provider = "MPESA-B2B " ;
52- return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =null );
52+ return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =$ callback_url , $ wallet_id = $ wallet_id );
5353 }
5454
55- public function intasend ($ currency , $ transactions , $ callback_url =null )
55+ public function intasend ($ currency , $ transactions , $ callback_url =null , $ wallet_id = null )
5656 {
5757 $ provider = "INTASEND " ;
58- return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =null );
58+ return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =$ callback_url , $ wallet_id = $ wallet_id );
5959 }
6060
61- public function bank ($ currency , $ transactions , $ callback_url =null )
61+ public function bank ($ currency , $ transactions , $ callback_url =null , $ wallet_id = null )
6262 {
6363 $ provider = "PESALINK " ;
64- return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =null );
64+ return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =$ callback_url , $ wallet_id = $ wallet_id );
6565 }
6666
67- public function airtime ($ currency , $ transactions , $ callback_url =null )
67+ public function airtime ($ currency , $ transactions , $ callback_url =null , $ wallet_id = null )
6868 {
6969 $ provider = "AIRTIME " ;
70- return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =null );
70+ return $ this ->send_money ($ provider , $ currency , $ transactions , $ callback_url =$ callback_url , $ wallet_id = $ wallet_id );
7171 }
7272}
0 commit comments