When going through the one step checkout process, Paypal Express is encountering an error where the page is not being properly redirected.
By debugging into opcheckout.js, in the function
setStepResponse, this line was stopping execution of all JS:
Some additional debugging showed that
response.update_section.name was undefined.
By adding a custom observer to the hook
controller_action_postdispatch_checkout and ensuring a name is set, I was able to fix this problem.
The Enterprise extension
GoogleAnalyticsUniversal has an observer tied to the same event that calls the function
setGoogleAnalyticsOnCheckout. It appears that this function is causing the problem.
Is this a bug in Enterprise? Or is it possible the data is "corrupted" upstream by a custom extension?
setGoogleAnalyticsOnCheckoutfunction since the code is part of Enterprise.