Support

Home Forums Event Espresso Premium Stripe not sending receipt

Stripe not sending receipt

Posted: June 20, 2018 at 7:07 pm

Viewing 3 reply threads


Kylee

June 20, 2018 at 7:07 pm

Hi

My query is like this one but I didn’t understand the resolution – https://eventespresso.com/topic/very-urgent-stripe-issues-not-creating-customer-record-or-sending-receipts/

Stripe isn’t auto-sending a receipt to the customer even though they’ve got the email address from the transaction. When I got help from them, they said:

“In the logs for the charge request for that charge it’s saying that no email was provided for a receipt.

It looks like for this charge, the email went into the Name parameter instead of the Email parameter inside of the API call.

As I’m seeing that the API call was sent over to us from Event Espresso, you may need to reach out to them to ensure that your customers email address goes into the right location so they’ll be able to get receipts.”

Can you please explain what I need to change to make this happen? Thanks!


Tony

  • Support Staff

June 21, 2018 at 3:52 am

Hi Kylee,

To force the Stripe payment method to send email receipts you need to create a custom functions plugin, we have some documentation on doing so here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Once you have the plugin to hold your custom functions, you add this function to it:

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

That code tells the Stripe payment method to send over the primary registrants email to Stripe for them to send the receipt to.


Kylee

June 21, 2018 at 5:19 am

Thanks. Sorry I don’t know how much of that code to add into the .php file I created. From line 14 down?


Tony

  • Support Staff

June 21, 2018 at 5:30 am

Line 14 onwards is the function yes, most of the above are comments except for line 1 which is an opening PHP tag (you don’t want an opening PHP tag inside another opening PHP tag:

<?php
//Some code

function test_function() {
 echo 'Just a test function';
}

<?php

//More code

Will cause a fatal error.

I’ve added the code to a plugin for you here: http://take.ms/mf06p

You can download the zip and upload it to your site through Plugins -> Add new -> Upload plugin.

Viewing 3 reply threads

The support post ‘Stripe not sending receipt’ 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