请返回付款页面并更正地址

发布于 2024-12-07 11:36:26 字数 1806 浏览 0 评论 0原文

我在澳大利亚整合贝宝沙箱时遇到问题。 在后端,我启用了除 billing_phone 号码之外的所有选项卡。当我点击立即付款时,出现以下错误请返回付款页面并更正地址。我在这里附上我的代码。提前致谢

<iframe name="hss_iframe" width="600px" height="600px" style="margin-top:-5px"></iframe>
<form style="display:none" target="hss_iframe" name="form_iframe" method="post" action="https://securepayments.sandbox.paypal.com/acquiringweb">
  <input type="hidden" name="cmd" value="_hosted-payment">
  <input type="hidden" name="currency_code" value="AUD">
  <input type name="subtotal" value="71">
  <input type="hidden" name="business" value="FK4PGWANVUF9C">
  <input type="hidden" name="shipping" value="0">
  <input type name="paymentaction" value="sale">
  <input type="hidden" name="template" value="templateD">
  <input type="hidden" name="invoice" value="12345">
  <input type="hidden" name="billing_first_name" value="John">
  <input type="hidden" name="billing_last_name" value="Due">
  <input type="hidden" name="billing_address1" value="5 Cromwell St">
  <input type="hidden" name="billing_address2" value="Glen Iris">
  <input type="hidden" name="billing_city" value="Glen Iris">
  <input type="hidden" name="billing_state" value="VIC">
  <input type="hidden" name="billing_zip" value="3146">
  <input type="hidden" name="buyer_email" value="[email protected]">
  <input type="hidden" name="billing_country" value="AU">
  <input type name="return" value="https://122.165.58.219/team2/wpp-hosted/receipt_page.html">
</form>
<script type="text/javascript">
    document.form_iframe.submit();
</script>

i have an problem with integration of paypal sandbox for Australia.
in back end i enabled all tab except billing_phone number. when i click pay now i get following error Please return to the payment page and correct the address. here i am attaching my code. thanks in advance

<iframe name="hss_iframe" width="600px" height="600px" style="margin-top:-5px"></iframe>
<form style="display:none" target="hss_iframe" name="form_iframe" method="post" action="https://securepayments.sandbox.paypal.com/acquiringweb">
  <input type="hidden" name="cmd" value="_hosted-payment">
  <input type="hidden" name="currency_code" value="AUD">
  <input type name="subtotal" value="71">
  <input type="hidden" name="business" value="FK4PGWANVUF9C">
  <input type="hidden" name="shipping" value="0">
  <input type name="paymentaction" value="sale">
  <input type="hidden" name="template" value="templateD">
  <input type="hidden" name="invoice" value="12345">
  <input type="hidden" name="billing_first_name" value="John">
  <input type="hidden" name="billing_last_name" value="Due">
  <input type="hidden" name="billing_address1" value="5 Cromwell St">
  <input type="hidden" name="billing_address2" value="Glen Iris">
  <input type="hidden" name="billing_city" value="Glen Iris">
  <input type="hidden" name="billing_state" value="VIC">
  <input type="hidden" name="billing_zip" value="3146">
  <input type="hidden" name="buyer_email" value="[email protected]">
  <input type="hidden" name="billing_country" value="AU">
  <input type name="return" value="https://122.165.58.219/team2/wpp-hosted/receipt_page.html">
</form>
<script type="text/javascript">
    document.form_iframe.submit();
</script>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

长发绾君心 2024-12-14 11:36:26

我的代码也不起作用,但我没有现在添加的计费字段,并且它起作用了。

我没有:

<input type="hidden" name="currency_code" value="AUD">
<input type="hidden" name="shipping" value="0">

希望这对任何人都有帮助

My code wasn't working either, but I didn't have the billing fields which I have now added and it worked.

I didn't have:

<input type="hidden" name="currency_code" value="AUD">
<input type="hidden" name="shipping" value="0">

Hope this helps anyone

我们只是彼此的过ke 2024-12-14 11:36:26

我也有同样的问题。我通过添加相同的字段但没有“billing_”来解决这个问题。在你的情况下,它将是:

<input type="hidden" name="first_name" value="John">
<input type="hidden" name="last_name" value="Due">
<input type="hidden" name="address1" value="5 Cromwell St">
<input type="hidden" name="city" value="Glen Iris">
<input type="hidden" name="state" value="VIC">
<input type="hidden" name="zip" value="3146">
<input type="hidden" name="country" value="AU">

我不知道它是否重要,但我也删除了“billing_address2”和“address2”。

I had the same problem. I resolved it by adding the same bunch of fields but without "billing_". In your case it will be:

<input type="hidden" name="first_name" value="John">
<input type="hidden" name="last_name" value="Due">
<input type="hidden" name="address1" value="5 Cromwell St">
<input type="hidden" name="city" value="Glen Iris">
<input type="hidden" name="state" value="VIC">
<input type="hidden" name="zip" value="3146">
<input type="hidden" name="country" value="AU">

I don't know whether it's important or not but I also removed both "billing_address2" and "address2".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文