spookylukey / django-paypal

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

Sending 'rm' parameter from PayPalPaymentsForm #171

Closed gusreyes01 closed 7 years ago

gusreyes01 commented 7 years ago

I've noticed in some ocations paypal "return_url" is sent as a post. I've seend the docs and know there is an rm to use GET only.

How can I achieve this?

spookylukey commented 7 years ago

You should pass the required value of the rm parameter in the initial dict argument to PayPalPaymentsForm - see https://django-paypal.readthedocs.io/en/stable/standard/ipn.html

gusreyes01 commented 7 years ago

@spookylukey Thanks, just to be sure , would this work?:


    paypal_dict = {
        "business": "receiver_email@example.com",
        "amount": "10000000.00",
        "item_name": "name of the item",
        "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/",
        "custom": "Upgrade all users!",  # Custom command to correlate to some function later (optional),
        "rm": 1,
    }
spookylukey commented 7 years ago

I can't answer support requests like this - this is an issue tracker for bugs in django-paypal, not a support forum. Try it!

gusreyes01 commented 7 years ago

@spookylukey will do, thanks!