I'm using paypal recurrent payment api (NVP). when user register to my site, it goes to paypal for subscription with 14 days free trial and created their profile and return back to my site with paypal returned info. Now i want to check that registered user already used trial period or not. if already used trial period then subscription amount will be charged from now not after 14 days. Please help me regarding this process. how can i stop a user to use trial period multiple times?

Thanks

有帮助吗?

解决方案

You can try "GetRecurringPaymentsProfileDetails" request.

But you would still need to have subscription id saved on your side in your database. Without that you have no way to find the user.

The best would be to have all data on your side and not use paypal to check it. So just save in your database information about subscription and check it later when user will try to make another one.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top