Skip to content

Commit

Permalink
Update mpesa_stk.ino
Browse files Browse the repository at this point in the history
callback url must be secured #1
  • Loading branch information
fbiego authored Aug 30, 2022
1 parent 1e5fa83 commit e6e04f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mpesa_stk/mpesa_stk.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void setup() {
}
Serial.println(" connected");

mpesa.begin(TEST_CODE, PAYBILL, "http://mycallbackurl.com/checkout.php"); //call this in setup after connected to the internet
mpesa.begin(TEST_CODE, PAYBILL, "https://mycallbackurl.com/checkout.php"); //call this in setup after connected to the internet

String result = mpesa.pay("2547XXXX__", 20, "Arduino", "Test"); //STK request
//you can also implement this in the loop but remember each call performs an STK Request
Expand Down

0 comments on commit e6e04f7

Please sign in to comment.