artfulrobot / uk.artfulrobot.civicrm.gocardless

A CiviCRM extension providing GoCardless integration to handle UK Direct Debits.
GNU Affero General Public License v3.0
5 stars 18 forks source link

Pending transactions not updating on CiviCRM 4.6 #33

Closed alarmingcod closed 6 years ago

alarmingcod commented 6 years ago

Hi

I'm working on a site where go cardless dd is installed on a membership page with paypal as the cc processor.

When I opt for m'ship and select go cardless it is creating the mandate as expected. When I view the contribution on Civi the payment is recorded as "Paid By: Credit Card" not Direct Debit.

This seems to have been happening for a few months the payment page has recorded dozens of DD payments as Credit Card, but they are all showing as pending incomplete transaction. The debits are all showing as being paid in the client's go cardless acct. Could it be because the payments show as Credit Card, not Direct Debit that they are not being updated when the payment is taken?

Direct Debit is set as the default payment instrument for the site, I can't figure out where in the contribution page this is over-ridden.

Have you come across an issue like this before? Do you have any suggestions where I could start investigating further?

Cheers

Craig

artfulrobot commented 6 years ago

Sounds like your web hooks are not firing? You can check the logs in your client's GC account.

Unless of course you've not selected Gocardless direct debit as the payment type for the GC payment processor? (Step 2 in readme

Or it could be a bug of course. But check those things first.

alarmingcod commented 6 years ago

Hi Rich,

Just seen your update, thanks for the pointers. Will double check everything when I'm back in the office tomorrow.

Craig

alarmingcod commented 6 years ago

Hi Rich,

Just tried to edit the payment processor, and payment method doesn't display as an option (screenshot below).

Anywhere else I could be looking to reset this?

Craig

artfulrobot commented 6 years ago

Aaargh! you just posted your live access token (or most of it) on a public site! Can you delete that image and expire your access tokens?

Here's what mine looks like:

screenshot from 2018-03-19 14-41-18

What version of CiviCRM are you using?

alarmingcod commented 6 years ago

Picture removed. Definitely not seeing a Payment Method option. 4.6.31

alarmingcod commented 6 years ago

My bad for adding the codes in the screenshot.

Not normally my role to manage payment processors, but we're short staffed at the moment

So is the process now... disable access tokens and webhooks in gocardless, then create read/write access token from the subsequent pop up grab new token, paste this into payment processor settings create a new webhook endpoint, adding in my own secret key copy secret key into payment processor settings?

artfulrobot commented 6 years ago

sounds about right.

um, by the way, I think this issue might be because you're on 4.6. I've only tested this extension on 4.7.

Getting it working on 4.6 would, I suspect, be a medium-sized job, not least because the testing framework that is available in 4.7 is not there in 4.6.

alarmingcod commented 6 years ago

That makes sense.

I need to wait for a colleague to return to expedite the shift to 4,7

Thanks for your help getting me this far. I'm only in the office again on Weds this week, do you mind if I keep this open into next week?

artfulrobot commented 6 years ago

Closing, feel free to reopen if it's an issue on 4.7