From 6524a5a04e64ce040611628f27e08fd02edfe002 Mon Sep 17 00:00:00 2001 From: francescbassas Date: Sun, 28 Jul 2024 18:29:16 +0200 Subject: [PATCH] Add is email receipt as doPayment parameter --- src/WebformCivicrmPostProcess.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WebformCivicrmPostProcess.php b/src/WebformCivicrmPostProcess.php index 9adfff5e3..6fdeef539 100644 --- a/src/WebformCivicrmPostProcess.php +++ b/src/WebformCivicrmPostProcess.php @@ -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); }