from flask import Flask, request, jsonify
app = Flask(__name__)


@app.route("/")
def hello():
    return "Hello World!"

@app.route("/paid", methods=['POST'])
def paid():
    # print(request.args.get('invoice'))
    return jsonify(request.args)


if __name__ == "__main__":
    app.run()

import json
from flask import Flask, request, jsonify
app = Flask(__name__)


@app.route("/")
def hello():
    return "Hello World!"

@app.route("/paid", methods=['POST'])
def paid():
    print(json.dumps(request.args))
    return jsonify(request.args)


if __name__ == "__main__":
    app.run()

print request args