Skip to content

Commit

Permalink
(WIP) post-process API call for membership installments
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Apr 19, 2024
1 parent 6709848 commit eb67439
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions api/v3/TwingleDonation/Submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
else {
// this is a follow-up recurring payment
$membership_type_id = NULL;
$isInstallment = TRUE;
}
}

Expand Down Expand Up @@ -880,6 +881,18 @@ function civicrm_api3_twingle_donation_Submit($params) {
}
}

if (

Check failure on line 884 in api/v3/TwingleDonation/Submit.php

View workflow job for this annotation

GitHub Actions / PHP_CodeSniffer

Empty IF statement detected
($isInstallment ?? FALSE)
&& is_string(
$membershipInstallmentPostprocessCall = $profile->getAttribute('membership_installment_postprocess_call')
)
) {
// TODO: MembershipPayment post process call
// * either via org.project60.membership
// * or via custom API call (e.g. form processor)
// receiving contribution_recur_id, contribution_id, contact_id
}

$result = civicrm_api3_create_success($result_values);
}
catch (Exception $exception) {
Expand Down

0 comments on commit eb67439

Please sign in to comment.