Esempio n. 1
0
def orders_bank_notify(request):
    r = 'OK'
    if settings.BANK_DRIVER.upper() == 'CYBERPLUS':
        bp = CyberPlus(request)
        if request.method == 'POST':
            bp.process_order()
        else:
            r = 'KO'
    elif settings.BANK_DRIVER.upper() == 'ETRANSACTIONS':
        bp = eTransactions(request)
        bp.process_order()
    elif settings.BANK_DRIVER.upper() == 'CMCIC':
        bp = cmcic(request)
        r = bp.process_order()
    elif settings.BANK_DRIVER.upper() == 'OGONE':
        bp = ogone(request)
        r = bp.process_order()

    return HttpResponse(r, mimetype="text/html")