我们花了很多时间试图弄清楚为什么 after paypal payment 的返回 POST 在付款后返回这个:
["payment_status"]=> string(7) "Pending"
我们能帮忙吗?
这是我们发送给 paypal 的主要参数:
$html = '<form style="display:none;" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">';
$html .= '<input type="hidden" name="charset" value="utf-8" />';
$html .= '<input type="hidden" name="currency_code" value="EUR" />';
$html .= '<input type="hidden" name="cmd" value="_cart">';
$html .= '<input type="hidden" name="upload" value="1">';
$html .= '<input type="hidden" name="notify_url" value="' . JURI::root() . 'index.php?option=com_nbreal&view=property&id=' . $data['property'] . '">';
$html .= '<input type="hidden" name="cancel_return" value="' . JURI::root() . 'index.php?option=com_nbreal&view=property&id=' . $data['property'] . '">';
$html .= '<input type="hidden" name="_notify-synch:cmd" value="_notify-synch">';
$html .= '<input type="hidden" name="return" value="http://navegadev.no-ip.org/blandy/index.php?option=com_nbreal&view=properties&task=payment_status">';
最佳答案
尝试拉取 Pending_Reason 变量。它应该有更多关于为什么挂起的交易被搁置的信息。您应该能够像检索付款状态变量一样检索它。
这里有更多信息:IPN and PDT Variables
关于php - Paypal POST返回,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18577950/