Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

View Payments shows "No payments found for this contribution record" #51

Closed
TomCrawshaw opened this issue Jan 20, 2019 · 5 comments
Closed
Labels
Milestone

Comments

@TomCrawshaw
Copy link
Contributor

Running Civi 5.8.2 on Drupal, and latest release of this extension. DD payments are working, and in summary contributions page are listed, but no "payments" are shown when drilling down. (see attached screen capture). All one-off contributions made by PayPal or Stripe are shown correctly, just not recurring ones. This means that when running GiftAid process, these contributions are rejected, presumably as no payment can be found. Table civicrm_contribution seems to have a complete record for these DD payments..

screen shot 2019-01-20 at 17 32 07

@artfulrobot
Copy link
Owner

Interesting. I don't get the same behaviour (D7, various CiviCRMs <=5.3). For Pending contributions I see "No payments found", but for Completed contributions, payments are found.

Do you have Financial Accounts set up correctly for the Donation Financial Type? /civicrm/admin/financial/financialType?reset=1

This extension does not create payment records; that's down to CiviCRM's internals. When you say you're running the latest release of this extension, can you clarify which version was running when the contributions were processed? Here's a timeline showing the release dates of this extension and the contributions in your screenshot.

  • 16 Nov 2018: you have a contribution in your screenshot.

  • 16 Nov 2018: v1.6 released, probably wasn't on CiviCRM extensions directory for another couple of days after this date.

  • 17 Dec 2018: you have a contribution in your screenshot.

  • 4 Jan 2019: latest release released (5 Jan on CiviCRM extensions dir).

V1.6 was quite a major change to the way recurring contributions created by the webhook are processed.

@TomCrawshaw
Copy link
Contributor Author

TomCrawshaw commented Jan 21, 2019 via email

@artfulrobot
Copy link
Owner

My entry at civicrm/admin/options/payment_instrument was also blank for Account. I don't think it should be (it says it's mandatory), so I'll mark this as a bug. But that had clearly not caused the problem in my case.

@artfulrobot artfulrobot added this to the 1.8 milestone Jan 21, 2019
@TomCrawshaw
Copy link
Contributor Author

TomCrawshaw commented Jan 23, 2019 via email

@artfulrobot
Copy link
Owner

Hi Tom,

The PHP comparison operator == means allowing type conversion, so "" == 0 is true. They should probably be using === which also compares type as well as value, so "" === 0 is not true.

It seems that the problem is that the Giftaid field is not being set (by the Giftaid extension) on the contribution.

The Giftaid extension separate to this https://github.com/compucorp/uk.co.compucorp.civicrm.giftaid

It's possible that the missing account was in some way a cause of the Giftaid extension not doing its thing. Or any number of other possibilities. Tests would be: set up a new GC DD, tick the Giftaid box and inspect the contribution created - what's its Gift Aid status? What's its status when it gets marked Completed? Also then inspect the next one to come in. Nb. for testing, I think weekly is the shortest period you can specify for GC (it does not allow daily, which is annoying for testing!)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants