贝宝快速结账处理“待付款"使用IPN [英] PayPal express checkout handling "pending payments" with IPN

查看:28
本文介绍了贝宝快速结账处理“待付款"使用IPN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到关于这个的明确的文档.
如果您使用 paypal 快速结账,当付款待处理时,接下来会发生什么?
如果状态发生变化,paypal 是否会通过 IPN 向您发送更新,您有选择吗?

I cant find anny clear documentations about this.
If you use paypal express checkout, when a payment is pending what happens next?
Does paypal sends you by IPN an update if the states changes, do you have options?

假设您执行 DoExpressCheckoutPayment(使用 NVP)你会得到这个:

Let say you do an DoExpressCheckoutPayment (with NVP) and you get this:

&PAYMENTSTATUS=Pending 
&PENDINGREASON= ECHECK //The payment is pending because it was made by an eCheck that has not yet cleared. 
&REASONCODE=None

所以你已经付款了,你想等到它被清除吗?接下来应该怎么做.

So you've made the payment and you want to wait until its cleared? What should you do next.

更新一些(外部文档)我发现只建议您可以使用(IPN?)来处理待处理的付款.

Update Some (external documentation) I found only sugest you could use (IPN?) to handle pending payments.

"如果 Do Express Checkout Payment PENDINGREASON 响应是一个值除了 none 或 completed ,付款是待处理的.通常,这意味着客户已使用 aneCheck 付款.在这种情况下,资金不能保证,您不应运送或交付物品或直到付款成功完成.注意:
PayPal 建议您在以下情况下阻止电子支票作为付款方式无法处理待处理的国家付款.待付款,您可以:

"If the Do Express Checkout Payment PENDINGREASON response is a value other than none or completed , the payment is pending. Typically, this means the customer has paid with aneCheck. In such a case, funds are not guaranteed, and you should not ship or deliver items or services until the payment has successfully completed. NOTE:
PayPal recommends that you block eChecks as a payment method if you are unable tohandle pending state payments.To find out the status of a pending payment, you can:

提交询价交易.

使用 PayPal 管理器检查状态.查看 PayPal 管理器在线帮助详情."

Check the status using PayPal Manager. See PayPal Manager online help for details."

paypal 沙箱似乎可以选择检查快速结账类型的 IPN 消息.DoExpressCheckoutPayment 和 IPN 之间唯一的相关性(如果以这种方式使用)似乎可以使用自定义"字段来跟踪挂起状态.DoExpressCheckoutPayment (nvp) 中未提供 txn_id (ipn).有没有人有这方面的经验?

The paypal sandbox seems to have the option to check IPN messages for the express checkout type. The only correlation (if its ment to be used this way) between the DoExpressCheckoutPayment and the IPN seems you can use the "custom" field to keep track of a pending status. The txn_id (ipn) isn't given in DoExpressCheckoutPayment (nvp). Does any one have any experience with this?

推荐答案

交易 ID 肯定在 DoExpressCheckoutPayment 中给出,即使 PAYMENTSTATUS=Pending.待处理的付款仍然是一笔交易.

The transaction ID is most certainly given in DoExpressCheckoutPayment, even if the PAYMENTSTATUS=Pending. A pending payment is still a transaction.

所以是的,当交易完成时,您会通过 IPN 收到通知.这通常需要几个工作日.
完成后,您可以将来自 DoExpressCheckoutPayment 的交易与您将通过 IPN 中的 txn_id 收到的 IPN 相关联.

So yes, you would be notified via IPN when the transaction is completed. This typically takes a few working days.
Once it has completed, you can correlate the transaction from DoExpressCheckoutPayment to the IPN you will have received via the txn_id in the IPN.

注意:如果您想在 PayPal 沙盒中测试待处理"付款,只需转到 https://developer.paypal.com/ > 测试账户,然后点击您正在测试的卖家账户的付款审核".
在该卖家帐户上启用付款审核后,它收到的任何交易都将处于待处理"状态.
只需禁用付款审核即可在之后发布交易.

Note: If you want to test a 'Pending' payment in the PayPal Sandbox, simply go to https://developer.paypal.com/ > Test account and click on 'Payment review' for the seller account you're testing with.
Once payment review is enabled on that seller account, any transactions it receives will be in a 'Pending' state.
Simply disable payment review to release the tranasctions afterwards.

这篇关于贝宝快速结账处理“待付款"使用IPN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆