I installed django-paypal, and I'm trying to enable subscription button.
I have the following view.
def donate_root(request):
paypal_dict = {
"business": PAYPAL_RECEIVER_EMAIL,
"amount": "10.00",
"item_name": "foobar money",
'currency_code': 'USD',
"invoice": "unique-invoice-id",
"notify_url": "https://www.example.com" + reverse('paypal-ipn'),
"return_url": "https://www.example.com/your-return-location/",
"cancel_return": "https://www.example.com/your-cancel-location/",
't3': 'D',
'p3': '1',
}
form = PayPalPaymentsForm(initial=paypal_dict)
context = {"form": form}
return render_to_response("main.html", context)
In main.html I have the following inside a div
{{ form.render }}
When I click the link, it takes me to paypal page that take the money once, and not recurring payment.
What did I do wrong?