【问题标题】:Paypal Pay Now Button with language support带有语言支持的 Paypal 立即付款按钮
【发布时间】:2015-12-23 01:59:37
【问题描述】:

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

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

【问题讨论】:

    标签: php html paypal


    【解决方案1】:

    你应该使用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>
    

    【讨论】:

    • 嘿,谢谢。它可以工作,但是当我输入我的用户名和密码并按“进入”时,贝宝的下一页又回到了英文。您知道如何在贝宝的整个交易过程中使用西班牙语吗?
    猜你喜欢
    • 2014-02-27
    • 2015-01-19
    • 2013-12-05
    • 2020-05-08
    • 1970-01-01
    • 2013-09-16
    • 2020-10-16
    • 1970-01-01
    • 2013-02-26
    相关资源
    最近更新 更多