Posted: July 11, 2023 at 8:50 am
Hi am building a plugin to send ticket information to a third party after the attendee has completed the registration and completed the payment. Please see below the plugin code: /******************** function nwif_send_xml_elig_gee() { EE_Registry::instance()->load_model(‘Transaction’); $registrations = $transaction->registrations(); } // Retrieve Prometrics token // Check if the token retrieval was successful // Prometrics API endpoint // XML data echo $xml; // Encode XML data as Base64 // URL parameters // Build the URL with parameters // Create a new cURL resource // Set cURL options // Execute cURL request // Check for errors // Close cURL resource // Hook the function to the appropriate action The only problem that I have is when this plugin is activated, the details at the bottom of the thank you page, Transaction, Registration, etc do not show up and I get the spinning dial icon. When I deactivate my plugin everything works as far as the Transaction, Registration, etc, so I know it is something that I am doing in the plugin. Is there a different AHEE action that I can use that will not cause this result? |
|
Hi Shon, The above plugin echos the response to the page, if the response to the above is being output on the ajax request for the spinning icon then it will cause that response to fail. Can you post a link to the thank you page of a test registration so I can view this? Or an event I can register onto without making payment to view it? |
|
This reply has been marked as private. | |
Ok, so see this: https://monosnap.com/file/LMZuQ6Oe55SBWmLFgckYJNF9FLkxia Thats being output on the ajax request. The rest of the response is actually valid but because you are outputting details that Event Espresso has no idea how to deal with it breaks loading those details. Do you need to echo the response? If so, why? |
|
The support post ‘Custom plugin using AHEE__EED_Thank_You_Page__init_end causes spinning dial icon’ 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.