- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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:
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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:
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Error on hosted payment page
It solved our issue.
Thank you!