Closed cheveuxroux69 closed 3 years ago
Thanks, I think https://github.com/artfulrobot/uk.artfulrobot.civicrm.gocardless/pull/83 is relevant, I'll try to take a look at it soon.
(The irony, of course, is that I wrote PropertyBag and the documentation to which you link... :facepalm: )
:) thanks!
Please try 1.9.3 which includes the pr on cancelling subscriptions
We're running CiviCRM 5.28, and this extension seems to work well but fails to delete subscriptions. I know that this isn't yet a supported version of CiviCRM. The problem is on line 119 of CRM/Core/Payment/GoCardless.php which is a debug dump of the params[] array passed in cancel subscription. From Civi 5.25, passing data to cancel a subscription is now done via a "PropertyBag" rather than an array (https://docs.civicrm.org/dev/en/latest/extensions/payment-processors/create/). The fix is to comment out the debug dump (lines 118-120) in /Core/Payment/GoCardless.php - the value "$params['id']" does not exist in a PropertyBag so the debug line fails. This value is not used in the rest of the cancelSubscription() function so is not important.