2011-10-03 30 views
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> 

回答

1

我的代码不能正常工作下去,但我没有,我现在已经增加了计费领域和它的工作。

我没有:

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

希望这有助于任何人

0

我有同样的问题。我通过添加相同的字段来解决它,但没有“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”和“地址2”做的。

相关问题