Happy Business Starts Here

Highlighted
Advanced Tutor

Zuora Hosted Payment Page with Salesforce Locker Service

Hi all,

 

We're using the Hosted Payment Page in a Salesforce Lightning Component which works fine with Locker Service turned off (if we set the API to version 39).

 

With it turned on, we get an error, triggered when importing the Zuora javascript.

 

When I load the HPM javascript into Salesforce's locker service console tool:

https://developer.salesforce.com/docs/component-library/tools/locker-service-console

 

I get this error:

Error: Cannot read property 'postMessage' of undefined

 

Locker Service does evaluate javascript with "strict mode", but I'm not sure that's the problem. Has anyone else run across this?

 

Peter