如何使用 ExpressCheckout 为 PayPal 定期付款设置 IPN URL? [英] How to set an IPN URL for PayPal Recurring Payments using ExpressCheckout?
问题描述
根据 PayPal 文档,在使用 ExpressCheckout 时,不可能有针对定期付款的即时付款通知 (IPN
).
According to the PayPal documentation, it is not possible to have Instant Payment Notifications (IPN
) for Recurring Payments when using ExpressCheckout.
我是如何得出这个结论的:
Here is how I come up with that conclusion:
在
SetExpressCheckout
文档中 对于NOTIFYURL
他们说:
通知 URL 仅适用于 DoExpressCheckoutPayment
.在 SetExpressCheckout
或 GetExpressCheckoutDetails
中设置时,将忽略此值.
The notify URL applies only to
DoExpressCheckoutPayment
. This value is ignored when set inSetExpressCheckout
orGetExpressCheckoutDetails
.
我没有使用 ExpressCheckout 进行一次性付款.我只是在创建一个重复的配置文件.所以我跳过了 DoExpressCheckoutPayment
调用,就像在 定期付款集成指南
.实际上,如果我执行 DoExpressCheckoutPayment
调用,它将无效,因为我已将金额设置为 0
.
I don't have a one-time payment with ExpressCheckout. I am just creating a recurring profile. So I am skipping the DoExpressCheckoutPayment
call like it is specified in the Recurring Payments integration guide
. Actually if I however do the DoExpressCheckoutPayment
call it would not be valid, because I have set the amount to 0
.
根据1.
NOTIFYURL
(准确地说是PAYMENTREQUEST_0_NOTIFYURL
)将被忽略,除非DoExpressCheckoutPayment
代码>被调用.但是我尝试在 SetExpressCheckoutPayment
调用中设置它.
According to 1.
the NOTIFYURL
(to be precise PAYMENTREQUEST_0_NOTIFYURL
) would be ignored unless a DoExpressCheckoutPayment
is called. However I have tried to set it in the SetExpressCheckoutPayment
call.
使用 IPN 模拟器,我成功接收 IPN 通知.
Using the IPN simulator I am successfully receiving IPN notifications.
使用 CreateRecurringPaymentsProfile 成功创建新的定期付款配置文件时
我没有收到 IPN 通知.
When successfully creating a new Recurring Payments profile using CreateRecurringPaymentsProfile
I am not receiving an IPN notification.
我没有找到可用于设置 NOTIFYURL
的与定期付款相关的 API 调用.
I did not find an API call related to the Recurring Payments which I can use to set a NOTIFYURL
.
如何在没有初始付款、INITAMT
或其他需要 DoExpressCheckoutPayment
的情况下使用 ExpressCheckout 设置定期付款的 IPN URL?
How can I set up an IPN URL for Recurring Payments using ExpressCheckout without an initial payment, INITAMT
or other requiring DoExpressCheckoutPayment
?
推荐答案
您可以在您的 PayPal 帐户中的个人资料下设置 IPN URL.
You can set the IPN URL in your PayPal account, under your profile.
这篇关于如何使用 ExpressCheckout 为 PayPal 定期付款设置 IPN URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!