Skip to content

Commit

Permalink
Add is email receipt as doPayment parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
francescbassas authored Jul 28, 2024
1 parent ea1351e commit 6524a5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WebformCivicrmPostProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,8 @@ private function submitIPNPayment() {
$params['cancelURL'] = $this->getIpnRedirectUrl('cancel');
}

$params['is_email_receipt'] = wf_crm_aval($this->data, "receipt:number_number_of_receipt", FALSE);

$this->form_state->set(['civicrm', 'doPayment'], $params);

}
Expand Down

0 comments on commit 6524a5a

Please sign in to comment.