compucorp / uk.co.compucorp.membershipextras

Membership Extras for CiviCRM
Other
5 stars 8 forks source link

CIWEMB-213: Add field to link recur contribution with payment scheme #459

Closed omarabuhussein closed 1 year ago

omarabuhussein commented 1 year ago

Overview

Adding payment_scheme_id custom field to "Payment Plan extra attributes" custom group, so we can use it to link a recurring contribution to a payment scheme.

Technical Details

The initial plan was to create new entity with the following:

But I found that we already have a custom group called "Payment Plan extra attributes" on the payment plan, so I found that it is easier and probably better to just add new field to it instead of creating new entity.

Also in general having API v3 support is not that important, and that we can just use API v4, which allows us to update or retrieve the value of this field using its name (unlike V3 that requires the custom field id, which results in more complicated queries), thus saving us from creating new API:

2023-03-17 19_45_23-CiviCRM APIv4 (ContributionRecur__update) _ compuclientv2ssp