Support

Home Forums Event Espresso Premium Receipt being sent to registrant instead of person paying for the ticket -Stripe

Receipt being sent to registrant instead of person paying for the ticket -Stripe

Posted: March 16, 2023 at 9:12 pm

Viewing 9 reply threads


stokedesignco

March 16, 2023 at 9:12 pm

Hello,

We are having an issue with the Stripe integration where the registrant being registered is receiving the stripe receipt, not the payee who is booking a course on behalf of the registrant.

Any help on the matter would be appreciated.

Thanks


Tony

  • Support Staff

March 17, 2023 at 7:17 am

Hi there,

By default EE does not set a value within the Stripe payment for receipts due to customer feedback on too many emails.

Looking through your past threads I mentioned this here:

https://eventespresso.com/topic/stripe-integration-not-generating-stripe-receipt-upon-purchase/

And then linked you to a snippet that sets the receipt email to the primary registrant’s address.

I assume you want to change that to always use the email address entered on the payment form?


stokedesignco

March 19, 2023 at 8:21 pm

Thanks Tony,

Apologies we did not get to you on the previous post. At the moment receipts are now sending but to the wrong person, we just want to send the receipt to the details entered for payment.

Thanks in advanced!


Tony

  • Support Staff

March 20, 2023 at 8:49 am

Right, so you always want to use use the email field on the payment options step for the receipts?


stokedesignco

March 27, 2023 at 4:25 pm

Hi Tony, yes thats correct ๐Ÿ™‚ ANy help would be amazing.

Thanks,


Tony

  • Support Staff

March 28, 2023 at 6:04 am

You need to swap out the previous custom function from above for this one:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/payment-methods/tw_ee_stripe_data_array_billing_info_email.php

That uses the email address set on the Stripe billing form for the receipt email.


stokedesignco

March 28, 2023 at 5:07 pm

Thanks Tony Perfect, can you please just confirm where this code needs to be placed?

Thanks again!


Tony

  • Support Staff

March 28, 2023 at 5:40 pm

I can’t because I have no idea where you put the current snippet you are using.

In this thread: https://eventespresso.com/topic/stripe-integration-not-generating-stripe-receipt-upon-purchase/

I gave you a snippet to tell Stripe to use the primary registrant email, the above needs to replace that on your site.


stokedesignco

March 29, 2023 at 1:01 am

Thanks Tony,

Tracked it down and have inserted the code. Will do some tests and report shortly. Appreciate the assistance.


Tony

  • Support Staff

March 29, 2023 at 2:43 am

Awesome, I’m glad you found it ๐Ÿ™‚

Viewing 9 reply threads

The support post ‘Receipt being sent to registrant instead of person paying for the ticket -Stripe’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso