Skip to content

Commit e6e04f7

Browse files
authored
Update mpesa_stk.ino
callback url must be secured #1
1 parent 1e5fa83 commit e6e04f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mpesa_stk/mpesa_stk.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void setup() {
5454
}
5555
Serial.println(" connected");
5656

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

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

0 commit comments

Comments
 (0)