Paypal发布数据在返回时丢失(沙箱)

Paypal发布数据在返回时丢失(沙箱),paypal,Paypal,我使用的是Paypal表单,对我来说,将数据返回到响应页面的最简单方法是构建一个巨大的自定义变量,并在返回时将其再次拆分。然而,返回时数据似乎丢失了一半。我似乎找不到与之一致的地方 自定义变量是使用jQuery构建的,但我会忽略该代码,因为我已经测试过它,它正确地填充了整个变量 <form id="paypal-submit" action="https://sandbox.paypal.com/cgi-bin/webscr" method="post"&g

我使用的是Paypal表单,对我来说,将数据返回到响应页面的最简单方法是构建一个巨大的
自定义
变量,并在返回时将其再次拆分。然而,返回时数据似乎丢失了一半。我似乎找不到与之一致的地方

自定义变量是使用
jQuery
构建的,但我会忽略该代码,因为我已经测试过它,它正确地填充了整个变量

                <form id="paypal-submit" action="https://sandbox.paypal.com/cgi-bin/webscr" method="post">
                <input type="hidden" name="cmd" value="_xclick">
                <input type="hidden" name="business" value="adrianbusiness@mysite.com ">
                <input type="hidden" name="item_name"
                value="Memorex 256MB Memory Stick">
                <input type="hidden" name="item_number" value="MEM32507725">

                <input type="hidden" name="amount" value="3"> 
                <input type="hidden" name="tax" value="1">
                <input type="hidden" name="rm" value="2">
                <input type="hidden" name="quantity" value="1">
                <input type="hidden" name="no_note" value="1">
                <input type="hidden" name="currency_code" value="EUR">
                <input id="custom-info" type="hidden" name="custom" value="adrian$%&quals$%&31 carab$%&8239 j $%&do no include address$%&adrian@gmal$%&061what$%&www.hjell=d$%&does not agree to texts$%&does not agree to contact listed in directory$%&does not agree to emails$%&does not agree to contact sharing for other organisations$%&does not wish to be publicly listed$%&ffndlk$%&do not include me in the directory of education$%&fd$%&do not include me in the speakers directory$%&fed">
                <input name="notify_url" value="http://example.com/paypal-info" type="hidden">
                <?php /* <input type="hidden" name="zip" value="">
                <input type="hidden" name="country" value="US"> */ ?>
                <input type="hidden" name="return" value="http://example.com/payment-success"/> 
                <input type="image" name="submit" border="0"
                src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif"
                alt="PayPal - The safer, easier way to pay online">
                </form>
可能只会输出

adrian$%&quals$%&31克拉$%&8239 j$%&不包括地址$%&adrian@gmal$%&061what$%&www.hjell=d$%&不同意文本$%&不同意目录$%中列出的联系人$%&不同意电子邮件$%&不同意其他器官的联系人共享

即使字符串中有更多的文本,也要停下来


Paypal可能有字符限制吗?

自定义参数有256个字符的限制。你的价值超过了这个,所以它会相应地被砍掉

我喜欢做的是在将此人发送到PayPal之前,将所有此类数据保存在本地数据库记录中。这样,您就可以在自定义参数中包含该记录ID,然后使用该ID从数据库中提取该数据


如果您保存的是订单/发票记录,那么您实际上可以在PayPal中使用invoice参数而不是CUSTOM,这样,它将在PayPal交易明细中的actual invoice Number字段而不是CUSTOM字段中显示您的本地发票ID。不过,无论哪种方法都可以。

好的,我读了一些书,我想可能有字符限制
    print_r($_POST['custom']);