-
Notifications
You must be signed in to change notification settings - Fork 18
Payment Method is null for recurring GoCardless payment #63
Comments
@yorkshirerose Hmmm. I don't see that - I checked 2 of my sites that use this extension, and I checked recently created (this month) contrib recurs and older ones (July). If the transaction is completed you should not be allowed to click that pencil icon as it should say "contribution is tied to a processor" or something, so you're def right that it's missing something, but how that happened I don't know. The create contribution code seems to rely on passing the I think there have been some major changes behind the scenes in core on payments APIs. There were some other issues with 5.19 that were addressed by GC 1.9beta2 So I'm left wondering
It you're able to run SQL, what's the output of this query? select cc.payment_instrument_id, count(*)
from civicrm_contribution cc
inner join civicrm_contribution_recur cr on cc.contribution_recur_id = cr.id
inner join civicrm_payment_processor pp on cr.payment_processor_id = pp.id
inner join civicrm_payment_processor_type pt on pp.payment_processor_type_id = pt.id
where pt.name='GoCardless'
group by cc.payment_instrument_id; (this query shows each payment instrument (i.e. method) and how many contributions have it for all GoCardless contribs) |
Funnily enough, I've just spotted this on our site and in googling the issue, found this, and realised the request is actually about our site @yorkshirerose ? Does this need your investigation Rich? I'm hoping this isn't going to affect any of the recurring memberships that are going to be taken next year? |
If you're on 1.9beta, then subsequent payments are recorded using repeattransaction which will copy the data from the last contribution. As it looks like you have corrected your existing contribution data, it should copy those and be OK. But something is/was odd, so it deserves investigation - I know you're going to ask someone to look at this, just updating here for general benefit of other readers. |
@artfulrobot I reproduced this on master using a local buildkit. I configured a contribution page in exactly the same way as the original site (Contribution page: no confirmation; stripe+gocardless; membership priceset with memberships set to auto-renew required). |
Thanks (again!) Matt. Do the tests pass with this change? Nb. Also, this seems related #67 with backwards-fix in (as yet unreleased) 589f92d#diff-88b95ffe133e110a0db7562f15afd0c9R216 I wonder if this could be at the nub of this one, too: #68 |
I've just been trying to set up a smart group (using Advanced Search) with the following criteria:
AND (under the Recurring payments fieldset)
This causes errors ("DB error: unknown error") and then all smart groups appear to break.
If I use Receive Date = last 30 days instead of Recurring Payments = last 30 days, it's fine.
When I look through the error log, I did notice "Ignoring exception thrown by nullHandler: -1, DB Error: unknown error". I also noticed, when poking around, that the Payment Method for the transaction (not the contribution) is null, despite being a mandatory field (see screenshot).
Site is running WordPress 5.3.2 and CiviCRM 5.19.4 and GoCardless extension 1.8
The text was updated successfully, but these errors were encountered: