Happy Business Starts Here

Re: Error on hosted payment page

Highlighted

Error on hosted payment page

On integrating hosted payment page 2.0 (ver 1.3.0 of zuora-min.js) in callback (see code below) I caught next error:

"Error on request payment page.

Errorcode=Invalid_Security, errorMessage=Request with protocol [http://localhost:63560] is not allowed for page 2c92c0f953132a5a01532e9726034493 [https://anypage.com]"

----

 

Code example:

----

if (response.success) {
  window.location.replace(redirectUrl);
} else {
if(response.responseFrom == "Response_From_Submit_Page") {
  alert("Response_From_Submit_Page errorcode=" + response.errorCode +      ",   errorMessage=" + response.errorMessage);
}
else{
  alert("Error on request payment page. Errorcode=" + response.errorCode +    ", errorMessage=" + response.errorMessage);
}
}

---

 

Please help to understand what does this error mean and what security option and where to change, since we stuck on this.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Support SME

Re: Error on hosted payment page

Hi, I would suggest to check the configuration for hosted page 2c92c0f953132a5a01532e9726034493. Normally this error message means you've configured domain https://anypage.com to be Hosted Domain of the page but trying to render it under domain http://localhohst.

 

Here is the document about the configuration:

https://knowledgecenter.zuora.com/CB_Billing/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/B_Configure...

 






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

View solution in original post

4 REPLIES 4
Highlighted
Guru

Re: Error on hosted payment page

@doyeli do you have any ideas on this one?

Maggie Longshore
Highlighted
Support SME

Re: Error on hosted payment page

Hi, I would suggest to check the configuration for hosted page 2c92c0f953132a5a01532e9726034493. Normally this error message means you've configured domain https://anypage.com to be Hosted Domain of the page but trying to render it under domain http://localhohst.

 

Here is the document about the configuration:

https://knowledgecenter.zuora.com/CB_Billing/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/B_Configure...

 






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

View solution in original post

Guru

Re: Error on hosted payment page

Thank you @Yolanda, does this mean we should create a hosted page version with localhost as the domain for the callback page for local testing? 

Maggie Longshore
Highlighted

Re: Error on hosted payment page

It solved our issue.

Thank you!