Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paypal API for checking status of recurring (subscription) payment

Tags:

php

api

paypal

Does anyone know is there any way to check status of recurring (subscription) payment at PayPal. I just want to submit transaction ID and to see is payment canceled (suspended) or it is still active.

like image 964
miki22 Avatar asked Jan 18 '15 08:01

miki22


1 Answers

If you're using the Recurring Payments API you can use GetRecurringPaymentsProfileDetails to obtain details including the current status of the profile.

If you're working with Standard Subscriptions, though, then there is no API to obtain the details, unfortunately.

In either case, I'd recommend looking into Instant Payment Notification (IPN). Using it you could automate the process of sending email notifications, updating your own database, etc. when new profiles are created, suspended, re-activated, etc.

like image 67
Drew Angell Avatar answered Oct 03 '22 07:10

Drew Angell