php - Paypal IPN 状态 "autochange"?

标签 php paypal paypal-ipn

我对在网页上购买 Paypal IPN(或其他方法)有疑问。

实际上我使用 IPN“后台”方法设置这样的表单:

<form id="TPVFORM" name='formTpv' method='post' action='https://www.sandbox.paypal.com/cgi-bin/webscr'>

<input type='hidden' name='cmd' value='_xclick'>
<input type='hidden' name='business' value='xxxxxx@gmail.com'>
<input type='hidden' name='item_name' value='MORE THINGS'>
<input type='hidden' name='item_number' value='99.00'>
<input type='hidden' name='amount' value='23.00'>
<input type='hidden' name='page_style' value='paypal'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='return' value='http://www.xxxx.com/web/payOrder'>
<input type='hidden' name='cancel_return' value='http://www.xxxx.com/web/payFail'>
<input type='hidden' name='rm' value='2'>
<input type='hidden' name='no_note' value='1'>
<input type='hidden' name='currency_code' value='EUR'>
<input type='hidden' name='cn' value='PP-BuyNowBF'>
<input type='hidden' name='custom' value=''>

<input type='hidden' name='lc' value='es'>
<input type='hidden' name='country' value='ES'>
<input type="submit" />
</form>

并在我的 Paypal 帐户中配置 IPN 检查 .PHP 文件的地址。 好的,至此,一切正常,但有一个问题打断了我:Paypal 有更多的“付款”状态,“已完成”、“待定”、“修改中”。

如果支付状态为“已完成”,我会验证其他参数,并将订单保存在我的数据库中,但如果状态为“待处理”,我不会保存订单,如果 Paypal 通过以下方式发送通知IPN 当状态为“待定”时,“稍后”在状态为“完成”时发送其他我没有问题,但如果只发送第一个状态“待定”或“whaiting”或其他想法,我如何检查付款状态? ¿当状态改变时,Paypal 向我的脚本发送一个 IPN 调用?

我迷路了..

最佳答案

。 Paypal 将在付款完成时调用您的 IPN 脚本,即使在最初购买时,它是 Pending 或类似的。

Question asked in the PayPal Developer Network

关于php - Paypal IPN 状态 "autochange"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7428922/

相关文章:

php - 如何以调用 PHP 文件的形式发送客户端 javascript 日期

paypal - 是否可以在 Paypal IPN 通知 URL 中嵌入 HTTP 基本用户名/密码?

wordpress - WooCommerce 中的 "Validation error: PayPal currencies do not match"

php - 使用 php 和 paypal 并存储在 mysql 数据库中的支付解决方案?

php - Paypal IPN 现在返回无效 - 以前工作正常的 PHP 代码

php - 将arduino sketch中的另一个数据列添加到mysql数据库中

php - Symfony2 捆绑系统

php - PHP 中的 !== 比较运算符是什么意思?

paypal - 在移动设备上未从 Paypal 接收自定义值

PayPal Adaptive - 买家姓名?