Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

omarabuhussein
Copy link
Member

@omarabuhussein omarabuhussein commented Mar 17, 2023

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:

  • 3 fields (id, contribution_recur_id, payment_scheme_id)
  • With API v3 and API v4 support to be able to do all the CRUD operations on this entity.

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

Adding the payment_scheme_id custom field to the payment_plan_extra_attributes custom group, so
it could be used to link a payment scheme to a recurring contribution.
@omarabuhussein omarabuhussein merged commit 0c4be5d into CIWEMB-84-workstream Mar 22, 2023
@omarabuhussein omarabuhussein deleted the CIWEMB-213-add-recur-scheme-link branch March 22, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants