Recurring contributions not marked as "cancelled" until you view them
When a mandate is cancelled it is supposed to update the recurring contribution. But it is not doing this until you "view" the individual recurring contribution.
When a mandate is cancelled it is supposed to update the recurring contribution. But it is not doing this until you "view" the individual recurring contribution.
Currently, when we view the recurring contribution smart debit sync is called which updates the status. In this case it is cancelled. This might slightly confusing as once the pop up is closed page shows the old status. Secondly, may be sync should be called on user consent.
So rather than calling it on view, may be we can have a sync button on the view page which will allow user to fetch the latest data from Smart debit.
Also when the popup is closed, it would be good to auto refresh the tab. (This might need some changes in core?)
Any thoughts on this?
@kurund I am happy to accept PRs for any/all of these changes.
The reason I didn't fix it already is because smartdebit does not notify when changes are made so you have to poll their system. This is ok for a small number of mandates (eg. 100) but breaks quickly when you poll > eg. 1000 mandates.
What is the reason for calling sync only on user consent? We are already getting information automatically from smartdebit via CRON and it is only for technical reasons (explained above) that the mandates are not always up to date in CiviCRM.
added enhancement label
See !13 (merged)
closed