This PR modifies the custom CalculateContribuitonRecieveDate hook dispatches with an abstract params instead of dispatching contribution object.
Membership Extras version 5 provides a new payment schedule UI that virtualise the details of instalments that would be created as follow
The existing CalculateContribuitonRecieveDate hook did not support when the payment plan has not been created it yet therefore, the instalment date could not be modified to virtualise on the instalment schedule table.
This PR fixed that.
Before
Hook can only be dispatched after the membership form is submitted.
After
Hook can be dispatched either before and after the payment plan is created.
Technical Details
The parameter that was passed to the hook was the contribution object and the hook implementer that modify the instalment date (e.g. Manual Direct bit Extension) does not need all the information.
The new parameters that provide to hook are below, which would work when generating instalment schedule before and after submit the membership form.
Overview
This PR modifies the custom CalculateContribuitonRecieveDate hook dispatches with an abstract params instead of dispatching contribution object.
Membership Extras version 5 provides a new payment schedule UI that virtualise the details of instalments that would be created as follow
The existing CalculateContribuitonRecieveDate hook did not support when the payment plan has not been created it yet therefore, the instalment date could not be modified to virtualise on the instalment schedule table.
This PR fixed that.
Before
Hook can only be dispatched after the membership form is submitted.
After
Hook can be dispatched either before and after the payment plan is created.
Technical Details
The parameter that was passed to the hook was the contribution object and the hook implementer that modify the instalment date (e.g. Manual Direct bit Extension) does not need all the information.
The new parameters that provide to hook are below, which would work when generating instalment schedule before and after submit the membership form.