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

PayPal donations not showing on RSR #796

Closed
KasperBrandt opened this issue Oct 13, 2014 · 4 comments
Closed

PayPal donations not showing on RSR #796

KasperBrandt opened this issue Oct 13, 2014 · 4 comments

Comments

@KasperBrandt
Copy link
Contributor

It seems like the amount_received and IPN number are not filled in for invoices through PayPal, causing the donation to keep the status 'stale' and not appear on RSR. Even though we do get the money on our PayPal account.

@kardan
Copy link
Contributor

kardan commented Oct 13, 2014

Looks like the signal & function used to handle Paypal payments got lost in the big model organising https://github.com/akvo/akvo-rsr/blob/v2.3.5/akvo/rsr/models.py#L2111 .

@KasperBrandt
Copy link
Contributor Author

In UAT we have to check whether donations are working again as they should. Other than that, we should update the stale donations. The following should be done per donation:

  • invoice.amount_received = invoice.amount - ipn.mc_fee
  • invoice.ipn = ipn.txn_id
  • invoice.status = 3

@KasperBrandt
Copy link
Contributor Author

Test plan

GIVEN a PayPal donation
WHEN a donation is made and approved by PayPal
THEN the donation should be completed and visible on RSR

kardan added a commit that referenced this issue Oct 21, 2014
@rumca
Copy link
Contributor

rumca commented Oct 22, 2014

I'm not sure if this is working as expected on UAT or not. The initial donation goes through and shows up on the funding totals as the test plan expects. However the next time the pending invoice update task runs, the invoice is marked as stale and the donation total decreases again.

I had thought that someone mentioned there was an issue with paypal sandbox which stopped this from working correctly - but that it would work as intended in production. Up until now I've been manually updating the invoice in the admin to mark it as complete and update the amount received etc.

@MichaelAkvo MichaelAkvo added this to RSR Dec 8, 2022
@MichaelAkvo MichaelAkvo moved this to Done in RSR Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants