Skip to content

Plugin needs to set “receipt_email” param on Stripe’s PaymentIntent object to allow automatic emailing of receipt

1
5 years agoopen0

Hi. I have a very minor but very important feature request which will benefit your plugin and its users a lot. Currently, when using Stripe gateway for credit/debit card payments, a receipt is not sent automatically because the MEC plugin is not setting the “receipt_email” parameter in the Stripe API request ( as explained on https://stripe.com/docs/receipts )

It’s a very minor change in the modern-events-calendar/app/features/gateways.php file. Here’s the diff of the change I made locally and it worked:
598c598
id)) $stripe->paymentIntents->update($results[‘id’], [‘customer’ => $customer->id]);

> if($customer and isset($customer->id)) $stripe->paymentIntents->update($results[‘id’], [‘customer’ => $customer->id, ‘receipt_email’ => $user_email]);
1774c1774
id)) $stripe->paymentIntents->update($results[‘id’], [‘customer’ => $customer->id]);

> if($customer and isset($customer->id)) $stripe->paymentIntents->update($results[‘id’], [‘customer’ => $customer->id, ‘receipt_email’ => $user_email]);

Please add this change to the official file and release an updated version soon. Thanks!

Sahre
Tags

OM Nondual Infinite Awareness

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis error dignissimos fugiat voluptas, asperiores quibusdam exercitationem id quam reiciendis expedita quidem nemo? Illo quod suscipit est possimus officiis repellendus eum.

Leave a Reply

Your email address will not be published.Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Search
Categories
Subscribe
Socials