iframe payone重定向父级 [英] Iframe payone redirect parent

查看:212
本文介绍了iframe payone重定向父级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张付款表格。当我提交该表单时,它会在我成功提交时重定向到PAYONE以获取付款信息​​。该页面重定向到我网站的成功链接以获取更多详细信息。

I have one payment form. When I submit that form it will redirect to PAYONE for payment information when I successfully submitted. That page redirect to success link of my site for further details.

现在我的问题开始:
我打开我的支付网关(PAYONE)页面进入iframe同一个窗口。但是当我成功提交信息并点击提交时。然后它将在iframe中重定向

Now my question start: I open my payment gateway (PAYONE) page into an iframe in same window. But when I successfully submitted information and click to submit. Then it will redirect in the iframe.

如何重定向到我在帖子数据中提供的成功链接?

How can I redirect to success link which I provided in post data?

推荐答案

我知道这个Q& A比污垢更老,但我想我会为其他任何寻找此信息的人澄清。

I know this Q&A is older than dirt, but thought I'd clarify for anyone else looking for this information.

由于重定向将会发生在同一个域的页面上,跨域脚本安全性不起作用,因此您不需要在iframe父级上放置任何代码,只需让支付提供程序返回到包含以下内容的页面:

Since the redirect is going to be on a page in the same domain, cross domain scripting security doesn't come into play, so you don't need to put any code on the iframe parent, simply have the payment provider return to a page with the following:

<html><head><title></title></head>
<body onload="parent.location='http://www.google.com';">
If you are not redirect in 5 seconds, please click here...  etc..
</body></html>

这篇关于iframe payone重定向父级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆