spookylukey / django-paypal

A pluggable Django application for integrating PayPal Payments Standard or Payments Pro
MIT License
729 stars 208 forks source link

"Optional" variables are actually required? #106

Closed lianhuilui closed 9 years ago

lianhuilui commented 9 years ago

The following fields are listed as optional on paypal but when I click "Buy Now", it shows they are required: a1, p1, t1, a2, p2, t2, a3, p3, t3, src, sra, modify, no_note, lc, page_style, cbt, custom, cmd, invoice, return_url

spookylukey commented 9 years ago

Please see the docs for how to use IPN/PDT:

https://django-paypal.readthedocs.org/en/stable/

lianhuilui commented 9 years ago

I followed the docs but those fields show up as required. I am using form wizard and this is the final form of the wizard. I don't know if they are compatible?

spookylukey commented 9 years ago

No, the django-paypal form is not a normal django form - it is never used to receive POST requests, only to create a button that is a link to PayPal. You have to use it as it says in the docs, using {{ form.render }}. This would presumably be after the last step in your form wizard code.