获取与 Paypal 中的定期付款配置文件关联的交易

发布于 2025-01-02 11:32:44 字数 542 浏览 0 评论 0原文

我已经浏览了几乎所有与使用 Paypal 定期付款相关的问题,但没有找到解决我的问题的方法。

我们正在实施一种按月(固定金额)订阅的系统。出于安全原因,我们不想存储 CC 详细信息,因此我们尝试使用 Paypal 的 Website Payments Pro。 一旦用户同意定期付款,我们就会为该用户创建一个 RecurringPaymentProfile 并存储为该用户返回的 Profile_Id。

现在我们需要获取与此 Recurring Profile_Id 相关的所有交易的信息。当我们登录 Paypal 帐户时,此信息可用,但这需要自动化,以便应用程序了解所有付款以及用户当前的订阅。

我们(可能)找到了两种方法来实现这一点。 1. IPN(即时付款通知,为此我们必须创建一个服务来监听通知,这似乎很麻烦并且信息量比我们需要的更多) 2. TransactionSearch(但这会返回 Paypal 帐户的交易,而不是 Profile_Id)

由于我们只想知道与定期配置文件关联的交易历史记录以及本月付款是否成功(暗示用户是活跃会员),那么什么是最好的方法来实现这个?

谢谢,

I have gone through nearly all the question related to Recurring Payment using Paypal and have not found a solution to my problem.

We are implementing a system that is subscription based on a monthly basis (fixed amount). We do not want to store CC details for security reasons, hence we are trying to use Website Payments Pro from Paypal.
Once a user agrees to recurring payments, we are creating a RecurringPaymentProfile for that user and are storing the returned Profile_Id for the user.

Now we need to get information about all the transactions related to this Recurring Profile_Id. This information is available when we login to the Paypal account but this needs to be automated so that the application is aware of all the payments and also of the current subscription of the user.

We have found two methods (possibly) to implement this.
1. IPN (Instant Payment Notification, for this we will have to create a service to listen to notifications, which seems to be cumbersome and is more informational than we require)
2. TransactionSearch (but this returns transactions for the Paypal account and not Profile_Id)

Since we just want to know the transaction history associated with the Recurring Profile and whether this months payment was successful (implying the user is active member), what is the best method to implement this ?

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

动听の歌 2025-01-09 11:32:44

您正在寻找 GetRecurringPaymentsProfileDetails API 操作< /a>.通过此操作,您可以使用有效的 PROFILEID 查看与定期付款资料相关的大部分详细信息。

您可能感兴趣的相关详细字段:

最后付款日期
最后一次成功收到付款的日期
此配置文件采用 YYYY-MM-DD 格式。

最后付款
此配置文件上次成功收到的付款金额。

付款失败计数
此配置文件失败的计费周期总数。

下一个结算日期
下一个计划的结算日期,采用 YYYY-MM-DD 格式。

NUMCYCYLESCOMPLETED
完成的计费周期数
当前有效订阅期。考虑计费周期
收款时或重试收款后完成
当前计费周期的付款失败。

You're looking for the GetRecurringPaymentsProfileDetails API Operation. This operation will allow you to view a majority of the details associated with a recurring payment profile using a valid PROFILEID.

Relevant detail fields you may be interested in:

LASTPAYMENTDATE
The date of the last successful payment received for
this profile, in YYYY-MM-DD format.

LASTPAYMENTAMT
The amount of the last successful payment received for this profile.

FAILEDPAYMENTCOUNT
The total number of failed billing cycles for this profile.

NEXTBILLINGDATE
The next scheduled billing date, in YYYY-MM-DD format.

NUMCYCYLESCOMPLETED
The number of billing cycles completed in the
current active subscription period. A billing cycle is considered
completed when payment is collected or after retry attempts to collect
payment for the current billing cycle have failed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文