Am doing the MPESA intergration using Flask. I have followed each of the steps provided in the SurvTech Youtube videos and am getting expected outputs when registering URLs and when running simulation link. But my confirmation and validation URLs are returning None data type instead of the JSON with data. SO my confirm.json and validate.json have the words null instead of a details of a simulated transaction.
Am using localhost and tunneling requests using ngrok
Below is my code.
from flask import Flask, json, request
import requests
#import request
#import json
from requests.auth import HTTPBasicAuth
Am doing the MPESA intergration using Flask. I have followed each of the steps provided in the SurvTech Youtube videos and am getting expected outputs when registering URLs and when running simulation link. But my confirmation and validation URLs are returning None data type instead of the JSON with data. SO my confirm.json and validate.json have the words null instead of a details of a simulated transaction.
Am using localhost and tunneling requests using ngrok
Below is my code.
Sample response when I register URLs is
Sample response when simulate transaction is
What could I be missing that causes no data to be returned?