26 lines
803 B
Python
26 lines
803 B
Python
from flask import Blueprint, request, jsonify, current_app
|
|
import requests
|
|
from app.config import settings
|
|
from app.utils.auth import get_headers
|
|
from app.utils.logger import logger
|
|
|
|
autocall_bp = Blueprint("autocall", __name__)
|
|
|
|
@autocall_bp.route("/refresh-verify-disbursement", methods=["GET"])
|
|
def verify_transaction():
|
|
data = request.json()
|
|
logger.info(f"Calling Verify Components")
|
|
return jsonify(data), 200
|
|
|
|
@autocall_bp.route("/refresh-disbursement", methods=["GET"])
|
|
def disbursement():
|
|
data = request.json()
|
|
logger.info(f"Calling Disbursement Components")
|
|
return jsonify(data), 200
|
|
|
|
|
|
@autocall_bp.route("/payment-callback", methods=["POST"])
|
|
def payment_callback():
|
|
data = request.json()
|
|
logger.info(f"Calling Callback Components")
|
|
return jsonify(data), 200 |