How to set receipt_email?

Created on 12 May 2021, about 3 years ago
Updated 4 December 2023, 7 months 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/Paris πŸ‡¨πŸ‡¦ πŸ‡ͺπŸ‡Ί

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

Comments & Activities

Not all content is available!

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

  • 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/Paris πŸ‡¨πŸ‡¦ πŸ‡ͺπŸ‡Ί

    @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.

Production build 0.69.0 2024