简体   繁体   English

通过API计算Paypal定期付款中的有效资料

[英]Counting active profiles in Paypal recurring payments via API

I want is for my python script to log into my Paypal account and check how many active profiles there are in my recurring payments section. 我想让我的python脚本登录到我的Paypal帐户,并检查我的定期付款部分中有多少个活动配置文件。

I can't find any API that would help me, TransactionSearch API isn't quite what I want - I don't want transactions, only active profiles 我找不到任何对我有帮助的API,TransactionSearch API并不是我想要的-我不想要交易,只想要活动配置文件

The only idea I have is to somehow detect every subscription and cancelation "on fly" and update a counter in the database. 我唯一的想法是以某种方式“即时”检测每个订阅和取消并更新数据库中的计数器。 Although it seems... impure :) 虽然似乎...不纯:)

So what you can do (or would need to do) is record the profile ID's of every profile. 因此,您可以(或需要做)的是记录每个配置文件的配置文件ID。 So as a user signs up, you keep track of the profile ID. 因此,当用户注册时,您会跟踪个人资料ID。 Then you can use GetRecurringPaymentsProfileDetails API to figure out if its active or not. 然后,您可以使用GetRecurringPaymentsProfileDetails API来确定其是否处于活动状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM