贝宝网站支付专业Iframe -支付与贝宝按钮重定向到贝宝

Paypal Website Payments Pro Iframe - pay with paypal button is redirecting to paypal

本文关键字:按钮 重定向 -支 网站 Iframe      更新时间:2023-09-26

我有一个问题与paypal结帐iframe:

网站支付的用户指南中的

Pro (https://www.paypalobjects.com/webstatic/en_GB/developer/docs/pdf/hostedsolution_uk.pdf)在第47页说:"买家永远不会离开你的网站"

但是paypal支付按钮将用户重定向到paypal登录,因此离开了网站。

我使用的代码与指南相同:
<iframe name="hss_iframe" width="570px" height="540px"></iframe>
<form style="display:none" target="hss_iframe" name="form_iframe" 
method="post" 
action="https://securepayments.paypal.com/webapps/HostedSoleSolutionApp/
webflow/sparta/hostedSoleSolutionProcess">
<input type="hidden" name="cmd" value="_hosted-payment">
<input type="hidden" name="subtotal" value="50">
<input type="hidden" name="business" value="MERCHANT ID">
<input type="hidden" name="paymentaction" value="sale">
<input type="hidden" name="template" value="templateD">
<input type="hidden" name="return" 
value="https://yourwebsite.com/receipt_page.html">
</form>
<script type="text/javascript">
 document.form_iframe.submit();
</script>

有人有同样的问题吗?

我怎么解决这个问题?

谢谢!

Matteo,你有没有尝试过使用灯箱或其他东西来让它工作?理想情况下,这个iframe代码应该在一个模态对话框中,当用户点击购买/支付/商店按钮时,这个对话框会显示出来。