【发布时间】:2018-01-24 02:32:17
【问题描述】:
<form action=" https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="paypalform" name="paypalform">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="abc@abc.com">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="currency_code" value="<?php echo $currency ?>">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="country" value="US">
<input type="hidden" name="return" value="http://abc-return.com">
<input type="hidden" name="cancel_return" value="http://abc-cancel.com">
<input type="hidden" name="item_name_1" value="Recharge">
<input type="hidden" name="item_number_1" value="<?php echo $user_id ?>">
<input type="hidden" name="amount_1" value="<?php echo $price ?>">
</form>
<script type="text/javascript">document.paypalform.submit();</script>
我正在使用 PayPal Payments Standard,通过 HTML 隐藏的名称-值对。
直到本月 9 日,情况开始变得更糟,付款一直如黄油般顺利进行。返回方法rm = 2是在此日期之前将帖子数据返回到我的返回页面,但是当我在9日检查时,帖子数据没有返回到我的页面。
我已经花了一个多星期的时间,但仍然无法弄清楚相同的代码如何在一天而不是之后的一天工作。
我已经在我的许多其他项目中实施了这种方法,如果数据没有在我的退货页面上发回,这可能会给我带来麻烦。我的 HTML 表单一切正常,我的 PayPal Sandbox 也收到了付款
唯一的问题是我的退货页面上没有收到帖子数据。
请帮我解决这个问题。
【问题讨论】:
-
当您说它不再返回
POST数据时,您希望返回什么数据?您是否在 PayPal 支付本身上设置了任何数据?如果是这样,您是否进行了调试以确认数据仍然实际存在于 PayPal 本身的 PayPal 按钮上? -
我希望取回发布到贝宝的数据,例如 txn_id 等和所有其他参数
标签: post methods paypal return rm