Created
May 16, 2020 17:05
-
-
Save DavidInnocent/dbc7a2b3f1ec6178e7cff07d7dbdf5cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-Type:application/json"); | |
if (!isset($_GET["token"])) | |
{ | |
echo "Technical error"; | |
exit(); | |
} | |
if ($_GET["token"]!='hahahahaha') | |
{ | |
echo "Invalid authorization"; | |
exit(); | |
} | |
/* | |
Accept an Mpesa transaction | |
by replying with the below code | |
*/ | |
echo '{"ResultCode":0, "ResultDesc":"Success", "ThirdPartyTransID": 0}'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment