Support

Home Forums Event Espresso Premium Custom Questions and Answers sent to PayPal Description

Custom Questions and Answers sent to PayPal Description

Posted: January 25, 2019 at 12:13 pm

Viewing 3 reply threads


Matt

January 25, 2019 at 12:13 pm

I’ve created a custom function to send extra Attendee data (Name, Email) to the PayPal Item Row Description, since my client relies on what they get from PayPal to do some of their admin.

I have added the custom question “Company” to the registration process. How can I get that to show in the description.

Basically, my question is…
If get(‘ATT_full_name’) gets me their Full Name, what gets me the answer to the custom question “Company” is it get(‘ATT_ANSWER_*Company’) or something else?

Thx.
Matt


Tony

  • Support Staff

January 25, 2019 at 1:06 pm

Hi Matt,

So I’m assuming you have an EE_registration object?

Here’s a code example of how to pull the answer to a specific question id for a registration:

https://gist.github.com/Pebblo/88f2a0a9213c716e4886a249e7709245#file-example-php-L29-L34

Is that what you are looking for?

You’ll need to pass the function the registration and the ID of the question, it then returns an EE_answer object.


Matt

January 25, 2019 at 2:41 pm

Awesome! Works perfectly. Thanks!


Tony

  • Support Staff

January 25, 2019 at 2:43 pm

You’re most welcome.

Viewing 3 reply threads

The support post ‘Custom Questions and Answers sent to PayPal Description’ 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