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.
Support forum for Event Espresso 3 and Event Espresso 4.