I'm doing some paypal integration in my application and bumped in on cancelling a RecurringPayments. To cancel a Recurring Payment, I need a Profile ID, I do not know where to get the Profile ID, can someone guide me here.
Your help would be greatly appreciated and rewarded!
Thanks! :)
You can also find the Profile-ID without making an API call. You can find it in your PayPal account.
Login to your PayPal account. Go to 'My Account' tab -> Overview There you will find the list of transactions in 'My recent activity' section.
Identify the Recurring-Payments (Recurring Payments can be identified from their type) Click on 'Details' for any Recurring transaction. You will be directed to a different page(Transaction Details). Check out the URL of this page. You can get the Profile-ID from there. OR Click on 'View details' when you are in the 'Transaction Details' page You can find the Profile-ID over there
Thank you.
Regards, Anish
Use PayPal API's 'GetTransactionDetails' method to get the details related to a particular transaction.
You have to pass the TransactionID as the parameter along with your request. And it will respond back with all the details(which includes the SubscriptionID/ProfileID as well) related to that transaction.
Follow this link: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_GetTransactionDetails
Hope it helps you.
Thank you.
I will be talking about Paypal API for Express Checkout here, and not Direct Payment.
When you charge subscription payment from customer you need to use Paypal API on 2 counts.
I am sure you have followed the above steps.
In that response, you will see Profile Id of the user. You have to save it somewhere such as database table corresponding to the user in concern.
Finally, when cancelling the subscription you have to pass the profile id and call ManageRecurringPaymentsProfileStatus.
Follow this nice tutorial: http://thereforei.am/2012/07/03/cancelling-subscriptions-created-with-paypal-standard-via-the-express-checkout-api/