Paypal在付款后显示“待处理”状态

时间:2012-08-17 07:29:18

标签: php paypal sandbox

我正在尝试将支付网关集成到基于PHP的应用程序中。为此我使用沙盒。 但是在付款后,状态显示为待处理状态,但已从帐户中扣除了金额。

我的代码就像:

<form name="frm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick" />
     <input type="hidden" name="business" value="sri_1338363856_biz@gmail.com" />
     <input type="hidden" name="amount" value="<?php echo get_plan_value($plan_id); ?>" />
     <input type="hidden" name="no_shipping" value="1" />
     <input type="hidden" name="no_note" value="1" />
     <input type="hidden" name="currency_code" value="USD" />
     <input type="hidden" name="lc" value="US" />
     <input type="hidden" name="item_name" value="<?php echo get_plan_name_by_value($_REQUEST['bus_plan']) ?> Registration" />
     <input type="hidden" name="bn" value="PP-BuyNowBF" />
     <input type="hidden" name="return" value="http://localhost/uploaded_server_alert/backup/alertR/business/payments-over.php?last_id=<?php echo $lastId; ?>&agent_email=<?php echo $agent_email; ?>&username=<?php echo ($uname); ?>&contact_email=<?php echo $contact_email; ?>" />
     <input type="hidden" name="rm" value="2" />

     <input type="submit"  border="0" name="submit" value="Order Now" alt="Make payments with PayPal - it's fast, free and secure!" class="additional_height" title="Make payments with PayPal - it's fast, free and secure!" />
     <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> 
  </form>

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:2)

那是因为Payment Review已启用。

在Developer Central中将其更改为已禁用 - &gt;测试帐户

答案 1 :(得分:0)

仔细检查您的IPN侦听器和IPN处理程序。

查看一些示例代码:

http://www.micahcarrick.com/paypal-ipn-with-php.html http://www.evoluted.net/thinktank/web-development/paypal-php-integration