关于paypal自适应api我有两个问题 . Problem 1: Am not getting IPN POST from Paypal Sandbox

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

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

我没有在测试帐户 Profiles 中设置任何通知网址 . 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?

Problem 2: Am not getting custom field from IPN if set the Notification URL in Testing Profile Setting

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

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

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

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

这有什么解决方案吗?

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