Ejemplo n.º 1
0
def sim_thank_you(request, payment_id,
                  template_name='payments/authorizenet/thankyou.html'):
    payment = authorizenet_thankyou_processing(
                                        request,
                                        dict(request.POST.items()))

    return render_to_response(template_name, {'payment': payment},
                              context_instance=RequestContext(request))
Ejemplo n.º 2
0
def sim_thank_you(request, payment_id,
                  template_name='payments/authorizenet/thankyou.html'):
    payment = authorizenet_thankyou_processing(
                                        request,
                                        request.POST.copy())

    return render_to_resp(request=request, template_name=template_name,
                              context={'payment': payment})
Ejemplo n.º 3
0
def sim_thank_you(request,
                  payment_id,
                  template_name='payments/authorizenet/thankyou.html'):
    payment = authorizenet_thankyou_processing(request,
                                               dict(request.POST.items()))

    return render_to_response(template_name, {'payment': payment},
                              context_instance=RequestContext(request))
Ejemplo n.º 4
0
def silent_post(request):
    # for now, we only handle AUTH_CAPTURE AND AUTH_ONLY
    if not request.POST.get('x_type', '').lower() in ['auth_capture', 'auth_only']:
        return HttpResponse('')

    payment = authorizenet_thankyou_processing(
        request, dict(request.POST.items()))

    log_silent_post(request, payment)

    return HttpResponse('ok')
Ejemplo n.º 5
0
def silent_post(request):
    # for now, we only handle AUTH_CAPTURE AND AUTH_ONLY
    if not request.POST.get('x_type', '').lower() in ['auth_capture', 'auth_only']:
        return HttpResponse('')

    payment = authorizenet_thankyou_processing(
        request, request.POST.copy())

    log_silent_post(request, payment)

    return HttpResponse('ok')