Closed aydun closed 5 years ago
Hi @aydun, I did write some code for that but I didn't get it ready for general use yet. I can dig it out for you. You would probably need to do some work to get it to match up with memberships, as my use case was just donations, so a bit simpler.
It's command line stuff, no fancy GUI. I'll take a look later this week.
Hi @aydun I've included the code I used, along with lots of disclaimers etc!, in a dir called cli
:
https://github.com/artfulrobot/uk.artfulrobot.civicrm.gocardless/blob/master/cli/import-from-gc.php
Since I don't think it's realistic to build a completely general purpose importer I'm going to close this ticket. But feel free to open it if you'd like to do build such a thing and want to track it there.
Many thanks @artfulrobot I'll need to add some membership bits but that's a useful starting point.
For future reference there are some reconciliations in the Smart Debit extension that might be inspiration for enhancements: https://docs.civicrm.org/smartdebit/en/latest/reconcile/
A while back you wrote:
By the way, I'm also considering launching code to import direct from GoCardless - this won't help people using Veda's extension (because they'll already have records in CiviCRM) - but is useful for (a) people who have been using GC with another integration, or where Mandates etc. have been created outside of the CiviCRM processes but would like to be imported.
Originally posted by @artfulrobot in https://github.com/artfulrobot/uk.artfulrobot.civicrm.gocardless/issues/4#issuecomment-425032257
Do this progress? I'm setting up a new Civi and importing memberships that have existing GC DD's. I need to pull the data from GC to take on the existing mandates/subscriptions.