使用表格在单独的行上显示PayPal项目名称/说明 [英] PayPal Item Name/Description on separate lines using forms

查看:98
本文介绍了使用表格在单独的行上显示PayPal项目名称/说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用基本的标准免费帐户和标准表单"_xclick"选项来处理PayPal Express Checkout的简单表单.

在输入商品名称或说明时,我知道您只能输入144个字符,但是我希望标题或说明中的信息位于不同的行上,以便在PayPals结帐区域中分隔信息,以便用户可以看看他们要付的钱.

我尝试使用"\ r" "\ n" 分隔行,如下所示"item_name" 使用输入这是第1行\ r \ n这是第2行\ r \ n这是第3行" ,但是当传递给贝宝(PayPal)付款页面以及通过收据电子邮件发送的时间.

当前示例代码:

<form name="TheForm" method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">    
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="currency_code" value="GBP">
  <input type="hidden" name="item_name" value="This is line 1\r\nThis is line 2\r\nThis is line 3">
  <input type="hidden" name="price" id="price" value="" />
  <input type="hidden" name="business" value="test@test.com">
  <input type="hidden" name="amount" value="">
  <input type="hidden" name="no_shipping" value="1">
  <input type="submit" name="Submit" id="Submit" value="Process Payment" />
</form>

我也尝试过使用&#10;&#13;<br><br />,但这些都不起作用,并且会以文本形式传递.

如何使用表格选项INPUT值(如上所示)在单独的行上实现项目信息的分离,请为项目说明或标题提供帮助,因为我尝试的方法不起作用并且找不到任何解决方案?

谢谢.

解决方案

当前没有方法可以做到这一点.标准的立即购买按钮不支持此功能.您可以使用购物车上载方法最接近地将商品放到不同的行上.而不是传递1个项目,而是在3个不同的行中显示要在项目名称中包含3个值的情况下,您将传递3个单独的项目,这将导致它们位于3个不同的行中.

I am processing a simple form to PayPal's Express Checkout using the basic standard free account and the standard form "_xclick" option.

When passing through the item name or description, I understand you are limited to 144 characters but I want to have the information inside the title or the description on different lines to separate the information when on PayPals checkout area so the user can clearly see what they are paying for.

I have tried to use "\r" and "\n" to seperate the lines, as seen below in the "item_name" input using "This is line 1\r\nThis is line 2\r\nThis is line 3", but it just ignores the "\r" and the "\n" when passed through to the PayPal payment page and when sent in the receipt email.

Current Example Code:

<form name="TheForm" method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">    
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="currency_code" value="GBP">
  <input type="hidden" name="item_name" value="This is line 1\r\nThis is line 2\r\nThis is line 3">
  <input type="hidden" name="price" id="price" value="" />
  <input type="hidden" name="business" value="test@test.com">
  <input type="hidden" name="amount" value="">
  <input type="hidden" name="no_shipping" value="1">
  <input type="submit" name="Submit" id="Submit" value="Process Payment" />
</form>

I have also tried using &#10;, &#13;, <br> and <br /> and none of these work either and are passed through as text.

How can I achieve separating the item information on seperate lines using the form option INPUT value, as shown above, for the item description or title please as the way I have tried does not work and I cannot find any solution?

Thanks.

解决方案

Currently there is not a way to do this. The standard buy now buttons do not support this. The closest you can come to putting things on a different line would be using a cart upload method. Instead of passing over 1 item, with 3 values in the item name that you want displayed on 3 different lines you would pass over 3 individual items which would cause them to be on 3 different lines.

这篇关于使用表格在单独的行上显示PayPal项目名称/说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆