Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled CSRF protection for IPN view #35

Open
wants to merge 101 commits into
base: master
Choose a base branch
from
Open

Disabled CSRF protection for IPN view #35

wants to merge 101 commits into from

Conversation

anvio
Copy link

@anvio anvio commented Nov 7, 2010

As of Django version 1.2 the CSRF protection is enabled by default. To make the IPN view work I had to disable the CSRF protection with the @csrf_exempt decorator .

Markus Törnqvist and others added 30 commits April 27, 2009 08:37
This reverts commit 6039d07.

	Partially.

Conflicts:
	(apparently none)

Some tweaking was required, this is a partial revert,
to restore existance of:
	new file:   standard/ipn/signals.py
PayPal uses an unspecified amount of decimals when returning
an IPN with an exchange rate - this takes that into account!

ALTER TABLE paypal_ipn ALTER COLUMN exchange_rate TYPE numeric(64, 16);
If the PayPal POST doesn't pass validation, we can't set
flags to it without initializing.

This still has the problem that the ipn object becomes
empty, it should be populated with real data.
…object rather than a boolean. Added support for manangeRecurringPaymentsProfileStatus.
@mpdaugherty
Copy link

I also had to make this change and was about to submit my own pull request when I saw there is one already open. Seems to be a common problem: http://stackoverflow.com/questions/2580375/ipn-delivery-failed-http-error-code-403-forbidden

Therefore, for what it's worth, I support this request.

@anvio
Copy link
Author

anvio commented Feb 14, 2011

You may want to have a look at the fork of dcramer
https://github.com/dcramer/django-paypal
It is much more up-to-date.

@mpdaugherty
Copy link

Thanks, Anvio

anvio and others added 26 commits April 2, 2011 06:56
Fixes initialization of PayPalSharedSecretEncryptedPaymentsForm
…properly so the IPN was ignored, added new signal for failed subscriptions
On MySQL, ordering by date does not give the desired ordering of getting the
most recently inserted row first. We need to order by the primary key too.
Making tests pass for standard.ipn for MySQL.
…l is never called by the code because this ipn has a txn_id
Added signals for recurring_payment_skipped and recurring_payment_failed
Fixed use of recurring_failed in the ipn_tests
The following payment status types are being added:
- Canceled_Reversal
- Refunded
- Reversed
- Voided

The payment_status field in PayPalStandardBase is being
modified. The max_length is now 17 to handle new types.
Corresponding migrations for ipn and pdt exist.

The following new IPN signals are being added:
- payment_was_refunded
- payment_was_reversed

The following new methods are being added to PayPalStandardBase:
- is_refund
- is_reversed

Added test for the new signals.
…lt of the postback verification to the PayPalPDTForm.

When a PDT trnsaction is flagged, the flags set (if any) are not passed to the form that is used to update the pdt object.
This commit fixes this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.