Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (
($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