Happy Business Starts Here

Re: Payment Pages 2.0 javascript, minified vs unminifed

pyao
Valued Scholar

Payment Pages 2.0 javascript, minified vs unminifed

Hi all,

 

The last sample code (Overlay Page) in the documentation has a bit of code we'd like to use to stop a spinner when the payment page finishes loading:

   Z.setEventHandler("onloadCallback", function() {
      // do something when HPM iframe is loaded.
      console.warn("HPM page is loaded.");
   });

Unfortunately, this only works with the unminified version of the javascript (https://static.zuora.com/Resources/libs/hosted/1.3.1/zuora.js), not zuora-min.js that we've been using - the minified version just doesn't have the call to invoke the eventhandlers for onloadCallback.

 

Is this a bug in the mini version, or is it left out on purpose?

Does anyone use zuora.js that they've minified themselves?

Would zuora.js that we've minified ourselves be supported?

 

Thanks!

Peter

2 REPLIES 2
pyao
Valued Scholar

Re: Payment Pages 2.0 javascript, minified vs unminifed

Actually... it looks like the 1.3.1 version of zuora-min.js that we have (from April 2019) is different than the current 1.3.1 posted, so it seems to be a version problem. But odd that there are two different versions with the same version number (and we haven't updated ours).

pbattisson
Tutor

Re: Payment Pages 2.0 javascript, minified vs unminifed

I've also been finding weird issues with the version listed as 1.3.1 currently - it has been setting the iframe height to 0. Dropping to 1.3.0 has fixed this so I think something funny is going on with the version of the library currently uploaded as 1.3.1.