Support

Home Forums Ticketing Add-on Paypal pro not displaying attentant details.

Paypal pro not displaying attentant details.

Posted: December 22, 2016 at 9:57 am

Viewing 11 reply threads


imran nathani

December 22, 2016 at 9:57 am

PayPal Shopping Cart Contents

Item Name: Workshop Ticket for Exercise & Excellence: Snow Tubing
Item Number: 2
/Note
Quantity: 2
/Note
Total: $0.00 CAD
/Note
/Note /Note /Note

Item Name: Tubing Ticket for Exercise & Excellence: Snow Tubing
Item Number: 1
/Note
Quantity: 1
/Note
Total: $30.00 CAD
/Note
/Note /Note /Note

Cart Subtotal: $30.00 CAD
Sales Tax:
Cart Total: $30.00 CAD
/Note /Note /Note

Payment details

/Note
Total amount: $30.00 CAD
Currency: Canadian Dollars
Transaction ID: XXXXXXXXXXXXXXX
Quantity: 2
Item/Product Name: Event Registrations from I Challenge Diabetes for Exercise & Excellence: Snow Tubing
Invoice ID: XXXXXXXXXXXXXXX
Buyer: XXXXXXXXXXXXXXX

Previously it used to look more like this,

Buyer information
XXXX XXXXXXX
XXXXXXXXXX@gmail.com
Instructions from buyer
None provided
Description Unit price Qty Amount
Team Registration for Ultimate Amazing Race Edmonton!. Attendee: XXXX XXXXXXX
$45.00 CAD 1 $45.00 CAD

Can someone direct me to which file I can modify in the back end to show the attendee name in addition to the buyer info.

Thanks!


Josh

  • Support Staff

December 22, 2016 at 10:29 am

No we do not direct people to modify files in the back end.


imran nathani

December 22, 2016 at 10:36 am

Is there another fix you could suggest?


Josh

  • Support Staff

December 22, 2016 at 1:01 pm

You can use Payflow Pro payment method instead.


Michael Nelson

  • Support Staff

December 22, 2016 at 5:57 pm

> Previously it used to look more like this,

Are you referring to Event Espresso 3? Or what version are you referring to?


imran nathani

December 22, 2016 at 8:53 pm

We went from Version 3.1.36.4.P -directing people to paypal to pay (ideal user information) to Version 4.9.23.p – using paypal pro, i did swtich it to payflow pro after Josh’s suggestion but the information i received is sitll not ideal.

PayPal Shopping Cart Contents

Item Name: Step 1 – Calendar
Item Number: 1
/Note
Quantity: 1
/Note
Total: $20.00 CAD
/Note
/Note /Note /Note

Cart Subtotal: $20.00 CAD
Sales Tax:
Cart Total: $20.00 CAD
/Note /Note /Note

Payment details

/Note
Total amount: $20.00 CAD
Currency: Canadian Dollars
Transaction ID: XXXXXXXXXXXX
Quantity: 1
Item/Product Name: Event Registrations from I Challenge Diabetes
Invoice ID: XXX_XXXXX
Buyer: Imran


Josh

  • Support Staff

December 23, 2016 at 9:20 am

That’s not at all what I get, and I suspect you’re not actually looking at the Transaction Details. Here’s a screenshot of an example of the information in a PayPal Payflow Pro transaction.


imran nathani

December 23, 2016 at 10:17 am

Hey Josh, the quotes I posted were from the email I would receive from paypal. In your screenshot of the back end transaction that you posted it doens’t show you the name of the person who the bike ride ticket was purchased for. That would be okay if the person paying was the attendee but with selling tickets to families we would like to see the attendees names in the paypal transactions report. Event espresso 3 was able to do this when customers were sent off my website to paypals website. I would think paypal pro or payflow pro should be able to track that for me?


Josh

  • Support Staff

December 23, 2016 at 10:22 am

I don’t think so, and that’s why that information can be found in Event Espresso > Registrations, as well as in the email that Event Espresso sends to the admin.


imran nathani

December 23, 2016 at 10:34 am

Is there anyway to change something going out from event espresso so on my regular paypal account. I would like to it with quickbooks and right now it can not differentiate payments coming in for events VS donations which also go into the same paypal account.

Thanks Josh!


Michael Nelson

  • Support Staff

December 23, 2016 at 11:08 am

Ahh ok I think I see the issue. So you switched from using PayPal Standard in EE3 to PayPal Pro in EE4, and there’s no description of who each line item is for… There’s a filter that you can use that will help with that. Let me write up a code snippet…


Michael Nelson

  • Support Staff

December 23, 2016 at 11:57 am

Here’s a code snippet that changes each line item description to mention which event and attendee(s) the line item is for. You would add this to your theme’s functions.php file:


add_filter( 'FHEE__EE_Gateway___line_item_desc', 'mn_customize_line_item_desc_add_attendee_info', 10, 4);
function mn_customize_line_item_desc_add_attendee_info( $item_description, EE_Gateway $gateway, EE_Line_Item $line_item, EE_Payment $payment  ){
    //find this line item's registrations, by finding all attendees who have registrations for the same ticket
    $ticket = $line_item->ticket();
    if( ! $ticket instanceof EE_Ticket ) {
        return $item_description;
    }
    $attendees = EEM_Attendee::instance()->get_all(
        array(
            array(
                'Registration.TKT_ID' => $ticket->ID(),
                'Registration.TXN_ID' => $payment->get('TXN_ID')
            )
        )
    );
    $attendee_names = array();
    foreach( $attendees as $attendee ) {
        $attendee_names[ $attendee->ID() ] = $attendee->full_name();
    }

    $item_description = sprintf(
        esc_html(
            _n(
                'For event %1$s (ID %2$s), attendee:%3$s',
                'For event %1$s (ID %2$s), attendees:%3$s',
                count( $attendee_names ),
                'event_espresso'
            )
        ),
        $ticket->get_event_name(),
        $ticket->get_event_ID(),
        implode(', ', $attendee_names )
    );
    return $item_description;
}

This snippet should work with PayPal Pro and PayPal Standard in EE4 (but not PayPal PayFlow or PayPal Express, they need an update). Does it achieve what you’re wanting Imran?

  • This reply was modified 8 years ago by Michael Nelson. Reason: trying to fix code block
Viewing 11 reply threads

The support post ‘Paypal pro not displaying attentant details.’ 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