def paypalIPN(request):
    if verify_ipn(request.POST.copy()):
        paykey = request.POST['pay_key']
        status = request.POST['status']
        payment_services.process_ipn_return(paykey, status)

        return HttpResponse("OK")
    else:
        raise BaseException('unverified IPN '+str(request.POST))
def paypalIPN(request):
    if verify_ipn(request.POST.copy()):
        paykey = request.POST['pay_key']
        status = request.POST['status']
        payment_services.process_ipn_return(paykey, status)

        return HttpResponse("OK")
    else:
        raise BaseException('unverified IPN ' + str(request.POST))
def paypalIPN(request):
    if paypal_adapter.verify_ipn(request.POST.copy()):
        paykey = request.POST['pay_key']
        status = request.POST['status']
        tracking_id = request.POST['tracking_id']
        paypal_services.process_ipn_return(paykey, status, tracking_id)

        return HttpResponse(_("OK"))
    else:
        raise BaseException(_('unverified IPN ')+str(request.POST))
Exemple #4
0
def paypalIPN(request):
    if paypal_adapter.verify_ipn(request.POST.copy()):
        paykey = request.POST['pay_key']
        status = request.POST['status']
        tracking_id = request.POST['tracking_id']
        paypal_services.process_ipn_return(paykey, status, tracking_id)

        return HttpResponse(_("OK"))
    else:
        raise BaseException(_('unverified IPN %s') % request.POST)