Support

Home Forums Event Espresso Premium Echo the payment reference on page template v4

Echo the payment reference on page template v4

Posted: May 30, 2014 at 1:20 am

Viewing 1 reply thread


Andrew McElroy

May 30, 2014 at 1:20 am

Please can you give me the code to echo the following for EE4:
a) transaction id
b) reg code
c) registration id

I will be adding this to the payment gateway plugin that I’m using so appreciate your assistance here.


Michael Nelson

  • Support Staff

May 30, 2014 at 5:51 pm

Where are you wanting to echo that information out? What information do you already have to work with?

If you are working from the thank-you page, the ee_reg_url_link should be in the URL’s querystring, so you can use EEM_Transaction::instance()->get_transaction_from_reg_url_link() to get the EE_Transaction object that’s currently being dealt with.

If you already have a EE_Transaction object, you can use it’s ID() method to echo its ID. You can use its primary_registration() method to get its primary EE_Registration object, which has a method called reg_code() for getting its reg code, and a method also named ID() for getting its ID.

If you have the primary registration EE_Registration object, you can again use its reg_code() and ID() functions, and also use its transaction() function to get its EE_Transaction.

Viewing 1 reply thread

The support post ‘Echo the payment reference on page template v4’ 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