2

我想根据用户区域设置显示贝宝登录页面。我怎样才能做到这一点?我添加了 localeCode 属性,但它不起作用。请仔细阅读我的代码,如果我错了,请纠正我

<form:form commandName="paymentForm" id="paymentForm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="paypal">           
    <form:input path="cmd" id="cmd" name="cmd" type="hidden" />
    <form:input path="business" id="business" name="business" type="hidden" />
    <form:input path="password" id="password" name="password" type="hidden" />
    <form:input path="custom" id="custom"  name="custom" type="hidden" />
    <form:input path="item_name" id="item_name" name="item_name" type="hidden" />
    <form:input path="amount"  id="amount" name="amount" type="hidden" />
    <form:input path="currency_code" id="currency_code" type="hidden"/>
    <form:input path="rm"  id="rm" name="rm" type="hidden" />
    <%-- <form:input path="returnUrl"  id="return" name="return" type="hidden" /> --%>
    <input type="hidden" name="return" value="${paymentForm.returnUrl}" />      
    <form:input type="hidden" name="paymentaction" path="paymentaction"/>
    <form:input type="hidden" name="cancel_return" path="cancel_return" />
    <form:input type="hidden" name="cert_id" path="certId" />
    <input type="hidden" name="LOCALECODE" value="en_US" />
        </form:form>    
4

2 回答 2

1
<input type="hidden" name="LOCALECODE" value="en_US" />

替换为

<input type='hidden' name='LC' value='EN'>

有关更多信息,请参阅此。

https://www.rocketgranny.com/codeclips/pp_languagecodes.php

于 2013-09-12T06:53:37.053 回答
0

我已将以下代码添加到我的表单中,现在它可以工作了

<input name=lc type=hidden value="en_US" />    
于 2013-09-12T14:05:35.637 回答