Php 完成后如何获取Paypal的状态

Php 完成后如何获取Paypal的状态,php,paypal,payment-gateway,paypal-sandbox,Php,Paypal,Payment Gateway,Paypal Sandbox,我正在开发一个网站,用户可以登录paypal并为特定服务付费。资金转移正确。但是我总是将状态设置为Pending,将原因设置为paymentreview或将原因设置为universal。是否有任何方法可以在完成时获取状态。我正在沙箱中测试这个。我的代码是 <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST" name="_cart" id="paypal_form"> <input

我正在开发一个网站,用户可以登录paypal并为特定服务付费。资金转移正确。但是我总是将状态设置为
Pending
,将原因设置为
paymentreview
或将原因设置为
universal
。是否有任何方法可以在
完成时获取状态
。我正在沙箱中测试这个。我的代码是

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST" name="_cart" id="paypal_form">
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="mybusiness@gmail.com" />
<input type="hidden" id="custom" name="custom" value=""/>
<input type="hidden" id="on0" name="on0" value="0"/>
<input type="hidden" id="amount_1" name="amount_1" value="10" />
<input type="hidden" name="currency_code" value="<?php echo $cntry; ?>" />
<input type="hidden" name="item_name" value="Account Deposit" />
<input type="hidden" id="amount" name="amount" value="10" /> 
<input type="hidden" name="return" value="RETURN URL AFTER TRANSACTION" />
<input type="hidden" name="notify_url" value="URL FOR UPDATING STATUS AFTER PAYMENT" />
<input type="hidden" name="cancel_return" value="MYSITE.COM" />
</form>

这就是为什么。您会收到Paypal发送给您的通知,该通知将在您收到付款或付款状态更改时通知您。因此,当您的付款状态变为
Completed