2015-09-25 66 views
1

当用户点击我的网站上的paypal支付按钮时,它将重定向到paypal支付页面,该页面要求用户输入他们的paypal凭证。目前,贝宝付款页面是英文的。我希望根据我的网站语言使用西班牙语或其他语言。以下是我发送给paypal的发布数据。Paypal支付语言支持按钮

<input type="hidden" name="cmd" value="_xclick"> 
      <input type="hidden" name="business" value="<?php echo $paypal['merchant_account']; ?>"> 
      <input type="hidden" name="return" value="<?php echo $paypal['webpage_url'].$language_path.$paypal['return_url']; ?>"> 
      <input type="hidden" name="currency_code" value="<?php echo $currency; ?>"> 
      <input type="hidden" name="item_name" value="<?php echo $itemName; ?>"> 
      <input type="hidden" name="amount" value="<?php echo number_format((float) $order->getTotal(), 2, '.', ''); ?>"> 

我试着这样做:

<input type="hidden" name="locale" value="es_es"> 

但它不工作。我怎样才能做到这一点?

回答

2

您应该使用lc=es_es

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top"> 
<input type="hidden" name="cmd" value="_xclick"> 
<input type="hidden" name="business" value="[email protected]"> 
<input type="hidden" name="lc" value="es_es"> 
<input type="hidden" name="item_name" value="test"> 
<input type="hidden" name="amount" value="1.00"> 
<input type="hidden" name="currency_code" value="USD"> 
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
</form> 

enter image description here

+0

嘿,谢谢。它的工作原理,但是当我输入我的用户名和密码,然后按“Entrar”,贝宝的下一页就会回到英文。你知道我怎样才能用西班牙语在整个贝宝的交易过程中做到这一点? – max