gpt4 book ai didi

php - 支持语言的 Paypal Pay Now Button

转载 作者:太空宇宙 更新时间:2023-11-03 15:55:07 24 4
gpt4 key购买 nike

当用户点击我网站上的 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">

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

最佳答案

你应该使用 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="vimaluk@gmail.com">
<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

关于php - 支持语言的 Paypal Pay Now Button,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32778739/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com