如何为paypal沙盒登录页面设置语言?

时间:2013-09-12 06:36:16

标签: paypal paypal-sandbox

我想根据用户区域设置显示paypal登录页面。我怎样才能做到这一点?我添加了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>    

2 个答案:

答案 0 :(得分:1)

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

替换为

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

了解更多信息,请参阅此内容。

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

答案 1 :(得分:0)

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

<input name=lc type=hidden value="en_US" />    
相关问题