自定义字段不是从IPN paypal自适应发布的

时间:2014-06-04 15:18:39

标签: php paypal paypal-ipn paypal-sandbox paypal-adaptive-payments

关于paypal自适应api我有两个问题。 问题1:我没有从Paypal Sandbox获得IPN POST

我在ipn_notification_url api调用中设置了pay,请求已成功完成。付款已完成,但未收到paypal沙箱的通知。

当我尝试使用IPN模拟器时,我可以获得POST值,但我不确定为什么它不能用于沙箱付款完成。

我没有在测试帐户个人资料中设置任何通知网址。 PayPal表示即使我们没有在Profile中设置通知URL也完全没问题,我们可以在API调用中指定。 REFERENCE

Note: The IPN message will always be sent to your notification URL unless receiving IPNs have been disabled. Even though you have not enabled receiving IPN messages in your Profile or you have reset your preference by turning off IPN messages, PayPal still sends IPN messages to the notification URL you specify for a specific payment. IPN messages not sent because you disabled the preference in your Profile will appear in the IPN history when you enable receiving IPNs. After they appear in the history, you can choose whether or not to resend them.

为什么我无法从IPN服务获得POST?

问题2:如果在测试配置文件设置中设置通知网址,则无法从IPN获取自定义字段

如果我在测试配置文件中设置通知URL,则从IPN获取POST,但它不包含我从custom请求设置的PAY字段。所以我无法完成订单。我得到了一个解答Here的工作。但在我的情况下,由于通知URL在测试配置文件中是静态的,因此无法实现。

如果它是动态的,那么我会尝试使用$ _GET将我的订单ID放在ipn_notification_url本身,然后我会将其作为回应。

但它甚至没有发送任何POST,因为我说这是我的第一个问题。

这种情况怎么办?问题1是暂时的问题吗?它会在现场工作吗?

有没有解决方案?

我试图在woocommerce订单中这样做。 任何帮助或参考都非常感谢。感谢

0 个答案:

没有答案