Receive transactions associated with a recurring payment profile in Paypal

I examined almost the entire issue related to the recurring payment using Paypal and did not find a solution to my problem.

We introduce a system that is signed on a monthly basis (fixed amount). We do not want to store CC data for security reasons, so we are trying to use PayPal Website Payments Pro. Once a user agrees to recurring payments, we create a RecurringPaymentProfile for this user and save the returned Profile_Id for the user.

Now we need to get information about all the transactions associated with this recurring ID_ profile. This information is available when you log into your Paypal account, but it must be automated so that the application is aware of all payments, as well as the user's current subscription.

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

Since we just want to know the transaction history associated with the recurring profile, and was this monthly payment successful (assuming the user is an active member), what is the best way to implement it?

Thanks,

+4
source share
1 answer

You are looking for the GetRecurringPaymentsProfileDetails API Operation . This operation allows you to view most of the details associated with a recurring payment profile using a valid PROFILEID .

Relevant information fields that may interest you:

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

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 is in the format YYYY-MM-DD.

NUMCYCYLESCOMPLETED
The number of billing cycles completed during the current active subscription period. The billing cycle under consideration is completed upon receipt of payment or after attempted attempts, payment for the current billing cycle failed.

+6
source

Source: https://habr.com/ru/post/1394672/


All Articles