How to set receipt_email?

Created on 12 May 2021, over 3 years ago
Updated 30 November 2023, about 1 year ago

Problem/Motivation

I cannot find a way to setup the receipt_email using the StripeEvent. It doesn't seem to be able to set that through the StripePaymentEvent class. It would be nice to have an additional method for custom settings, that would allow developers to set any stripe settings they would like.
And why not create a specific function for the receipt_email if it is considered as an important parameter. But a generic function for any setting is definitely needed in order to easily cover most of the Stripe API.

If there is a way to setup receipt_email programmatically that I missed let me know.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Merge request !1Issue #3213677: How to set Receipt email ? → (Merged) created by phjou
  • I'm assuming that this discussion pertains to triggering an email from Stripe based on the customer and transaction information – i.e. not importing transaction data into Drupal and emailing from there?

    I'm looking for a way for a Drupal Stripe Webform to trigger Stripe's default email receipt. Does this merge open the door to that possibility? One way or the other, does anyone have any guidance as to how to achieve that?

  • 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

    @goldin It's been a while so I don't remember exactly. The merge request is to set the email in the receipt on Stripe's backend.
    But I remember that we were triggering the default Stripe emails. So if you currently don't manage to do it, you should definitely try the patch and then configure your webform to set the receipt_email. Then try and see if that triggers the default Stripe email.

  • First commit to issue fork.
  • Pipeline finished with Skipped
    20 days ago
    #354481
  • heddn Nicaragua

    Thanks for your contributions.

  • Thanks for the update. I applied the update and am noticing that Stripe is still not automatically sending receipts. Does this recent MR address default Stripe email receipts being triggered within Stripe? And if so, is there a webform setting on the Drupal side that must be enabled to arm the trigger? I looked through all the webform config pages and do not see it.

Production build 0.71.5 2024