简体   繁体   中英

How to check if PayPal subscription is still on trial period

I'm using GetRecurringPaymentsProfileDetails endpoint of the PayPal classic API to retrieve information about the subscription. From the data, I get back from that endpoint, how do I determine if the customer is still on his initial trial period and not yet on the regular billing period?

如果TRIALTOTALBILLINGCYCLES > NUMCYCLESCOMPLETED ,即如果您完成的周期少于试用周期,则该帐户处于试用状态。

It's been a while since I worked with that API, but I think that if they are on trial you should be able to tell by looking at PROFILESTARTDATE . If it's in the future it should be on trial still.

Another option could be NUMCYLESCOMPLETED . I don't think a trial counts as a full cycle. https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetRecurringPaymentsProfileDetails_API_Operation_NVP/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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