Answers.Body: <p>I'm looking right at the relevant line in the Stripe extension and I'm not seeing how to arrive in the state you're in.</p>
  <p>The relevant line is in <code>api/v3/StripeSubscription.php</code> and reads:</p>
  <pre><code>    'is_email_receipt' =&gt; !empty($params['is_email_receipt']) ? 1 : 0,
  </code></pre>
  <p>Since <code>0</code> <a href="https://stackoverflow.com/a/2220529/2832108">is considered &quot;empty&quot;</a> in the line above, you should never have <code>is_email_receipt</code> set to <code>1</code> on your recurring contributions. I recommend placing debug statements above and below that line to ensure that a) this code is the correct code to look at, b) the values line up with what's expected.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-19T16:15:04.560Z
Answers.Text: Thank you Jon. Will do some more checking.
Answers.UserDisplayName: RebeccaTregenna
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-17T14:42:57.903Z
Answers.LastActivityDate: 2020-07-17T14:42:57.903Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I did have a look around already but thus far without much luck.</p>
  <p>We recently turned off the 'Email Receipt to Contributor?' option on a membership join page. I did check the ContributionPage settings and they show that the 'is_email_receipt' is off:</p>
  <pre><code>&quot;values&quot;: [
      {
          &quot;id&quot;: &quot;5&quot;,
          &quot;title&quot;: &quot;Join xxx&quot;,
          &quot;is_email_receipt&quot;: &quot;0&quot;
  </code></pre>
  <p>However new members joining are added as</p>
  <pre><code> &quot;contact_id&quot;: &quot;14971&quot;,
      &quot;currency&quot;: &quot;EUR&quot;,
      &quot;contribution_recur_id&quot;: &quot;4696&quot;,
      &quot;receive_date&quot;: &quot;2020-07-06 00:51:41&quot;,
      &quot;contribution_source&quot;: &quot;Join xxx&quot;
  
    &quot;id&quot;: &quot;4696&quot;,
          &quot;contact_id&quot;: &quot;14971&quot;,
          &quot;amount&quot;: &quot;10.00&quot;,
          &quot;currency&quot;: &quot;EUR&quot;,
          &quot;frequency_unit&quot;: &quot;year&quot;,
          &quot;frequency_interval&quot;: &quot;1&quot;,
          &quot;start_date&quot;: &quot;2020-07-06 00:51:38&quot;,
          &quot;is_email_receipt&quot;: &quot;1&quot;,**
          &quot;contribution_type_id&quot;: &quot;2&quot;,
  </code></pre>
  <p>Now I appreciate that for contacts that joined before switching off the receipts I would have to update the 'civicrm_contribution_recur' table to stop those but I cannot find a reason why new contacts are still being added with the  &quot;is_email_receipt&quot;: &quot;1&quot;</p>
  <p>We use Stripe as the payment processor and the 'Allow Stripe to send a receipt for one-off payments?' for settings is disabled.</p>
  <p>We are also using the <a href="https://github.com/fuzionnz/nz.co.fuzion.transactional" rel="nofollow noreferrer">nz.co.fuzion.transactional</a> extension so I can see the receipt that goes out on the contact record (the Civi one).</p>
  <p>Can anyone shed some light for me?</p>
  <p>Civi 5.24.4/Drupal 7</p>
  <p>Thank you!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-16T23:29:03.247Z
Comments.Text: Some payment processors also control that setting - notably Stripe.  Could you edit your question to include your payment processor?
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-17T07:53:45.640Z
Comments.Text: Done that - thank you!
Comments.UserDisplayName: RebeccaTregenna
Tags: <contribution-page><receipts>
Title: Contribution/membership receipt - unable to disable
ThreadText: # Contribution/membership receipt - unable to disable
  
  (Asked by: username_0 on 2020-07-16)
  
  I did have a look around already but thus far without much luck.
  
  We recently turned off the 'Email Receipt to Contributor?' option on a membership join page. I did check the ContributionPage settings and they show that the 'is\_email\_receipt' is off:
  
  ```
  "values": [
      {
          "id": "5",
          "title": "Join xxx",
          "is_email_receipt": "0"
  
  ```
  
  However new members joining are added as
  
  ```
   "contact_id": "14971",
      "currency": "EUR",
      "contribution_recur_id": "4696",
      "receive_date": "2020-07-06 00:51:41",
      "contribution_source": "Join xxx"
  
    "id": "4696",
          "contact_id": "14971",
          "amount": "10.00",
          "currency": "EUR",
          "frequency_unit": "year",
          "frequency_interval": "1",
          "start_date": "2020-07-06 00:51:38",
          "is_email_receipt": "1",**
          "contribution_type_id": "2",
  
  ```
  
  Now I appreciate that for contacts that joined before switching off the receipts I would have to update the 'civicrm\_contribution\_recur' table to stop those but I cannot find a reason why new contacts are still being added with the "is\_email\_receipt": "1"
  
  We use Stripe as the payment processor and the 'Allow Stripe to send a receipt for one-off payments?' for settings is disabled.
  
  We are also using the [nz.co.fuzion.transactional](https://github.com/fuzionnz/nz.co.fuzion.transactional) extension so I can see the receipt that goes out on the contact record (the Civi one).
  
  Can anyone shed some light for me?
  
  Civi 5.24.4/Drupal 7
  
  Thank you!
  
  **Tags:** contribution-page, receipts
  
  > **Comments:**
  > **username_1**: Some payment processors also control that setting - notably Stripe.  Could you edit your question to include your payment processor?  
  > **username_0**: Done that - thank you!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-17. Score: 0
  
  I'm looking right at the relevant line in the Stripe extension and I'm not seeing how to arrive in the state you're in.
  
  The relevant line is in `api/v3/StripeSubscription.php` and reads:
  
  ```
      'is_email_receipt' => !empty($params['is_email_receipt']) ? 1 : 0,
  
  ```
  
  Since `0` [is considered "empty"](https://stackoverflow.com/a/2220529/2832108) in the line above, you should never have `is_email_receipt` set to `1` on your recurring contributions. I recommend placing debug statements above and below that line to ensure that a) this code is the correct code to look at, b) the values line up with what's expected.
  
  > **Comments:**
  > **username_0**: Thank you Jon. Will do some more checking.  
  
  ---
  
  