Example #1
0
def thank_you(request, template_name='payments/receipt.html'):
    validate_type = 'PDT'
    payment, processed = paypal_thankyou_processing(
        request, dict(request.POST.items()), validate_type=validate_type)

    return render_to_response(template_name, {'payment': payment},
                              context_instance=RequestContext(request))
Example #2
0
def thank_you(request, template_name='payments/receipt.html'):
    validate_type = 'PDT'
    payment, processed = paypal_thankyou_processing(request,
                                    request.POST.copy(),
                                    validate_type=validate_type)

    return render_to_resp(request=request, template_name=template_name,
                              context={'payment': payment})
Example #3
0
def thank_you(request, template_name='payments/receipt.html'):
    validate_type = 'PDT'
    payment, processed = paypal_thankyou_processing(request,
                                    dict(request.POST.items()),
                                    validate_type=validate_type)

    return render_to_response(template_name, {'payment': payment},
                              context_instance=RequestContext(request))
Example #4
0
def ipn(request):
    validate_type = 'IPN'
    payment, processed = paypal_thankyou_processing(
        request, dict(request.POST.items()), validate_type=validate_type)

    if processed:
        log_silent_post(request, payment)

    return HttpResponse('ok')
Example #5
0
def ipn(request):
    validate_type = 'IPN'
    payment, processed = paypal_thankyou_processing(request,
                                dict(request.POST.items()),
                                validate_type=validate_type)

    if processed:
        log_silent_post(request, payment)

    return HttpResponse('ok')