Support

Home Forums Event Espresso Premium Can PayPal notification include Event Date?

Can PayPal notification include Event Date?

Posted: April 9, 2014 at 3:26 pm


Drio LLC

April 9, 2014 at 3:26 pm

Currently the PP notification I receive includes the registration name, event name, and amount paid, however, for my recurring events, I’d also like to know which date they registered for. Is there a way to modify the notification message?


Josh

  • Support Staff

April 11, 2014 at 3:05 pm

Hi Suzanne,

It turns out that Event Espresso doesn’t send the event date to PayPal, but it’s possible to add it to the fields that do get sent.

So to change it so the date gets sent to PayPal, and so the notification includes the event date, you can add it to the item_name field that EE sends. This will require some modifications to the paypal_vars.php file in the PayPal gateway.

First, you add the event start date to the SQL query ( ~ line 37 ) :

$SQL = "SELECT a.final_price, a.orig_price, a.quantity, ed.start_date, ed.event_name, a.price_option, a.fname, a.lname ";

Then you add the the date to the item name field ( ~ line 48 ) :

$myPaypal->addField('item_name_' . $item_num, $item->price_option . ' for ' . $item->event_name . ' on ' . $item->start_date . '. Attendee: ' . $item->fname . ' ' . $item->lname);

Then you can copy over the entire PayPal gateway to /wp-content/uploads/espresso/gateways to preserve your changes.

The support post ‘Can PayPal notification include Event Date?’ 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