Happy Business Starts Here

Advanced Tutor Seb
Advanced Tutor

Sandbox JavasScript Library response error is different than production response error

Hi,

 

I'm using the iframe integration to populate a SEPA payment method within my app as described here:

https://knowledgecenter.zuora.com/CA_Commerce/T_Hosted_Commerce_Pages/B_Payment_Pages_2.0/H_Integrat...

 

I've noticed than since 2-3 weeks now (early April 2017), the error response return is different when using the sandbox library: https://knowledgecenter.zuora.com/CA_Commerce/T_Hosted_Commerce_Pages/B_Payment_Pages_2.0/H_Integrat...

 

I'm using the SEPA form and populate the iframe using the render method with error handling as described here: https://knowledgecenter.zuora.com/CA_Commerce/T_Hosted_Commerce_Pages/B_Payment_Pages_2.0/N_Error_Ha...

 

The response argument within the `Z.renderWithErrorHandler` `errorMessageCallback` method differs from the library sandbox to library production. Using sanbox I receive a `String` and using the production library I receive an `Object`.

 

Here are the two library I'm using:

 

Staging:

https://apisandboxstatic.zuora.com/Resources/libs/hosted/1.3.0/zuora-min.js

 

Production:

https://static.zuora.com/Resources/libs/hosted/1.3.0/zuora-min.js

 

And here is a screenshot of the different response I have, they differs from staging to production:

 

Staging:

staging-zurora-lib.png

 

 Production:

production-zurora-lib.png

 

I've found that on the full version of those libraries (replace zuora-min.js by zuora.js in the URL) we have this difference of code that would explain this issue:

zuora-diff-lib.png

Is it possible to make the behaviour of staging to match the production's one please? Obviously we need an Object here and the production result is the right one. This was the case a month ago and everything was working properly on both environments, I don't know why it has changed in sandbox only.

 

Thanks

2 REPLIES 2
Zuora Alumni

Re: Sandbox JavasScript Library response error is different than production response error

Hi @Seb,

 

I just downloaded the JavaScript library from below URLs and it looks like they are the same information.

 

https://static.zuora.com/Resources/libs/hosted/1.3.0/zuora.js

https://apisandboxstatic.zuora.com/Resources/libs/hosted/1.3.0/zuora.js

 

Please see below screenshot.

 

Screen Shot 2017-04-25 at 3.42.55 PM.png

 

Can you try download the js files again from above URLs and see if they are same? 

 

Thanks.

Dennis



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Highlighted
Advanced Tutor Seb
Advanced Tutor

Re: Sandbox JavasScript Library response error is different than production response error

Hi @Dennis,

 

 

Yes they are the same now, it look like Zuora updated it in between.

 

Thanks,

Seb