Closed deepak-srivastava closed 3 years ago
This looks great. Some comments / suggestions
$deets
in favour of $details
- I'm terrible for including colloquialisms in code :-)callMail
and instead go on: if ! $result then completeRedirectFlowWithGoCardless
? Or do you thin the explicit parameter is important for readability?CRM_GoCardless_Hook
a standard pattern for keeping all hooks in one place? I'm not opposed and I can see it makes sense and I like the docblock, so just a question.I'm thinking of releasing v10.0.2 soon, do you think we should include this?
1 and 2 are done.
Thanks
@deepak-srivastava Thanks, this looks good to merge. I'll get it in 1.10.2
See https://docs.civicrm.org/dev/en/latest/testing/phpunit/#hookinterface
I've added a test at https://github.com/artfulrobot/uk.artfulrobot.civicrm.gocardless/pull/109
@artfulrobot #109 looks good to me. Thanks.
Great, thanks very much for your contribution, I'll merge it!
We working on a requirement to modify subscriptions in a way that for yearly memberships create direct debit with payment taken now and then next member payment taken Jan following year.
The solution we implementing is not very generic at this point, that we can submit to this extension, and providing a hook helps to keep the work clean and separate in another extension.
The pull request adds a hook around completeRedirectFlowWithGoCardless() which helps modify params or override the method, allowing further to modify the subscription schedule for specific cases.