Django PayPal возвращает ошибку: render () получил неожиданный аргумент ключевого слова 'renderer' - PullRequest
0 голосов
/ 03 мая 2019

Я пытаюсь реализовать кнопку оплаты PayPal.Я использую Django-PayPal.Я продолжаю получать эту ошибку: render () получил неожиданный аргумент ключевого слова 'renderer'.Я понятия не имею, что вызывает это.Я использую django 2.1.

Вот мой процесс PayPal:

def payment_process(request):
    template = loader.get_template("payment/process.html")
     paypal_dict = {
        "business": "henryemeka34@yahoo.com",
        "amount": "100.00",
        "item_name": "name of the item",
        "invoice": "unique-invoice-id",
        "currency_code": "USD",
        "notify_url": request.build_absolute_uri(reverse('paypal-ipn')),
        "return": request.build_absolute_uri(reverse('payment:done')),
        "cancel_return": 
request.build_absolute_uri(reverse('payment:cancelled')),
        # "custom": "premium_plan",  # Custom command to correlate to some function later (optional)
}

    # Create the instance.
    form = PayPalPaymentsForm(initial=paypal_dict)
    context = {"form": form}
    return HttpResponse(template.render(context,request))
...