Handle missing payment_status types #25

Closed
wants to merge 5 commits into
from

Projects

None yet

2 participants

@atul-bhouraskar

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.

atul-bhouraskar added some commits Dec 10, 2012
@atul-bhouraskar atul-bhouraskar Handle Paypal missing payment status types.
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.
e746586
@atul-bhouraskar atul-bhouraskar Ensure that _verify_postback passes through any flags set as the resu…
…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.
4b83920
@atul-bhouraskar atul-bhouraskar Refactored the PDT view to separate the main PDT processing logic int…
…o its own function.

The PDT view has been refactored to allow other views (or any other piece of code) to process the PDT information received in a request. This allows special views that do more than just processs the PDT and display a template to handle PDT requests.
The original PDT view functionality is unchanged.
c37c785
@atul-bhouraskar atul-bhouraskar Add signals and code changes for subscriptions. 869d72a
@atul-bhouraskar atul-bhouraskar Fix a number of datetime isues with IPN (and likely PDT) forms.
Add new datetime format as encountered in e-check IPN submitted via IPN simulator.
Add datetime fields missing in the form declaration as they need custom formats (e.g. retry_at).
84d8e32
@spookylukey
Collaborator

Most of the changes here have already been merged (in some form).

The ones that haven't seem to be related to subscription (the 'srt' field) and related signals.

Please see this page regarding the latter:

https://github.com/spookylukey/django-paypal/wiki/PayPalSignals

Your input would be really valued!

Some tests would really help me merge the subscription related things.

Due to large number of merged conflict, I'm going to close.

@spookylukey spookylukey closed this Jan 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment