# Path: app.py



import os
import sys
    import werkzeug.datastructures
    import flask
from flask import request, Response
from app import app
from itertools import chain
# -*- coding: utf-8 -*-
"""
    apis.paypal_ipn_verifier
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Paypal IPN Verifier for Flask
    http://flask.pocoo.org/snippets/112/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




IPN_URLSTRING = 'https://www.sandbox.paypal.com/cgi-bin/webscr'
IPN_VERIFY_EXTRA_PARAMS = (('cmd', '_notify-validate'),)


def ordered_storage(f):
    def decorator(*args, **kwargs):
        flask.request.parameter_storage_class = werkzeug.datastructures.ImmutableOrderedMultiDict
        return f(*args, **kwargs)
    return decorator



# Path: app.py



# Path: apis/paypal_ipn_verifier.py
import os
import sys
    import werkzeug.datastructures
    import flask
from flask import request, Response
from app import app
from itertools import chain

# -*- coding: utf-8 -*-
"""
    apis.paypal_ipn_verifier
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Paypal IPN Verifier for Flask
    http://flask.pocoo.org/snippets/112/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




IPN_URLSTRING = 'https://www.sandbox.paypal.com/cgi-bin/webscr'
IPN_VERIFY_EXTRA_PARAMS = (('cmd', '_notify-validate'),)


def ordered_storage(f):
    def decorator(*args, **kwargs):
        flask.request.parameter_storage_class = werkzeug.datastructures.ImmutableOrderedMultiDict
        return f(*args, **kwargs)
    return decorator



@app.route('/paypal/', methods=['POST'])