php - 更改 Paypal 购物车/结帐输入标签、表单名称并删除数量输入

标签 php paypal

如何更改购物车的标签? https://www.paypal.com/webapps/shoppingcart

通过发送此表单进入此页面

<div class="paypal_module">

        <form id="paypal_form_1_buy_now_button" method="post" action="https://www.paypal.com/cgi-bin/webscr">
            <div class="hiddenFields">
                <input type="hidden" name="cmd" value="_xclick">
                <input type="hidden" name="upload" value="1">
                <input type="hidden" name="business" value="nancy@somesite.com">
                <input type="hidden" name="return" value="{homepage}advance-reservations/confirmation">
                <input type="hidden" name="cancel_return" value="{homepage}">
                <input type="hidden" name="item_name" value="">
                <input type="hidden" name="item_number" value="1">
                <input type="hidden" name="amount" value="">
                <input type="hidden" name="lc" value="US">
                <input type="hidden" name="currency_code" value="">
                <input type="hidden" name="custom" value="1">
                <input type="hidden" name="site_id" value="1">
                <INPUT TYPE="hidden" NAME="first_name" VALUE="">
                <INPUT TYPE="hidden" NAME="last_name" VALUE="">
                <INPUT TYPE="hidden" NAME="email" VALUE="">
                <INPUT TYPE="hidden" NAME="night_phone_a" VALUE="">
                <INPUT TYPE="hidden" NAME="city" VALUE="">
                <INPUT TYPE="hidden" NAME="zip" VALUE="">
                <INPUT TYPE="hidden" NAME="state" VALUE="">
                <INPUT TYPE="hidden" NAME="address1" VALUE="">
                <INPUT TYPE="hidden" NAME="address2" VALUE="">
                <INPUT TYPE="hidden" NAME="undefined_quantity" VALUE="1">
            </div>

            <input type="submit" id="trip-booking-submit" name="submit" value="Submit" class="paypal_button button-sm-primary" style="float: right">
        </form>

我需要像这张图片那样更改标签。这可能吗?

需要的改变:

  • 将表单名称从“购买明细”更改为“存款明细”
  • 将输入标签从“每件商品的价格”更改为“存款金额”
  • 移除数量输入

enter image description here

提前致谢!

帮助链接:https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/howto_checkout-outside

https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECCustomizing/#setting-the-paypal-checkout-page-style

最佳答案

IIRC,您可以自定义该页面的某些部分,例如页眉和 Logo ,但您无法随心所欲地对其进行自定义。

结帐 Paypal's docs有关自定义上述内容的信息。

When your account is created, PayPal sets up the default PayPal payment page style in your account profile. This default page style has PayPal branding only. Depending on your account type, your business name or email address appears in the upper left of the default page.

Add your own custom payment page styles to co-brand the PayPal checkout pages with your logo and colors. You can add the following co-branding features to your custom pages:

  • Header image — Your own logo image, in place of your business name or email address.
  • Header background — A fill color of your choice, above the main page area.
  • Header border — A line color of your choice, above the main page area.
  • Background — A fill color of your choice, surrounding the main page area.

关于php - 更改 Paypal 购物车/结帐输入标签、表单名称并删除数量输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39507443/

相关文章:

php - 在 PHP 中将数据库列值总和设置为单个变量

paypal - 如何为我的网站收取经常性的每月订阅费?

PayPal DoCapture “you don’ t 有权进行此 API 调用”错误

php - 表从 phpmyadmin 中删除

php - 从我的插件调用 Woocommerce 插件的函数

php - 像这样设置变量 $config ['business' ]

我网站上的 PayPal 立即购买按钮存在重定向问题

iphone - iOS - 如何在 iPhone 交易成功后从 paypal 检索交易 ID

php - 执行 OPENQUERY 以从 MySql Server 中提取数据并使用 PDO 将其从 php 脚本内部连接到 SQL 表?

php - 正则表达式 : remove <img which src attribute is empty