4
votes

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,

1

1 Answers

6
votes

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.