Searching PayPal subscriptions based on email - rest

We have PayPal subscribers who have signed up for recurring monthly payments using a PayPal generated button on our site. We are thinking about placing a paywall of sorts around some of our content.
Is there a way to search our subscriber list based on a user's email? I would like for the user to input his email on our site. Then, I'll use PayPal's REST API to see if they are an active subscriber based on that.
I've looked on PayPal's API documentation, and I can only find the ability to search by the user's ID. https://developer.paypal.com/api/subscriptions/v1/#subscriptions_get
Does PayPal have any other REST functionality to search by email? Thanks.

There is no functionality to search by email.
Set up a webhook listener subscribed to PAYMENT.SALE.COMPLETED events, and keep your own record of the last time each subscription was paid for.

Related

API callback from Paypal when there is dispute or refund

I am trying to setup a website with a backend to capture papal orders and payments using their orders API.
Everything is expected to be controlled using code so is there any way paypal will send a callback when there is a dispute or customer asks for a refund ? i.e. if there are many orders it would be hard to keep track of disputes by reading emails.
Yes, check out the PayPal API documentation. The Disputes API is what you are looking for.
Set up a webhook listener on the REST app for the events you want to listen to (specify * for all). There are events for disputes and refunds; see the list in the PayPal documentation

PayPal Notification on Payment Sent

All documentation I can find for PayPal development is focused on capturing payments from a customer. Even IPN and Webhook events are all about taking action when payments are received.
I operate a small press and my primary use of PayPal is to send payments to authors. I need to take certain actions when payment is sent from my PayPal account to many different recipients.
Using any PayPal API, how do I programmatically retrieve a list of recent payments I have sent? Alternatively, how can I receive a webhook notification when I send a payment through PayPal instead of when I receive one?
The TransactionSearch API would allow you to pull transactions based on different types. It uses the Classic API, though, not REST.
IPN would send notifications when any transaction hits in your account, including payments you send from it via send_money, masspay, or the Pay API.

PayPal check stop subscription

Is there a way to stop paypal subscription via HTML form?
(E.g. there is a form on my website that is submit somewhere on paypal.com)
I do not use API, but I use notify (IPN) URL and have subscription ID I want to cancel.
PayPal Standard Subscriptions do not have any API available to cancel profiles. You would need to be using the Recurring Payments API in order to have that ability.

PayPal: How do you get notifications of payment through the permissions API?

Using the PayPal permissions API can you receive notifications from payments made after a customer clicks on a payment button, proceeds to PayPal, and then pays?
I notice they have IPN, but will this work with the permissions API?
Thanks!
You can include NotifyURL in your API requests to set a URL for IPN to POST data to. It's not something that technically "works with the permissions API" but any transaction that is made would indeed trigger the IPN.
If you're building an app for 3rd parties to use, though, and you're passing NotifyURL in your API requests, that will override any IPN configuration each individual merchant using your tool might have setup on their own. This can cause frustration for such users because then their own IPN solution doesn't get hit when they take payments through your app.
If you're going to do that I recommend setting up a way for your users to enter their own IPN URL in your app settings, and then if they have a value, forward the POSTed data to their URL when PayPal sends it to yours. That way both IPN scripts will get hit and process the data accordingly.

relating website payments standard and IPN?

Im using Website Payments Standard so users can pay for a rating to be shown on their profile. Im also using IPN to check if the payment went through. How do I relate the two? When I get an IPN request to my listener, how do I know which user and rating it relates to?
If users are initiating payment through a buy it now or shopping cart button embedded in your site, you can set some sort of text box where the user enters their user name. this info will be sent with the Ipn. This is set up on the pay pal sure where you create the buttons.
Another method would be get their actual name from the ipn. Check the documentation for a list of variables that are sent with the ipn, there are a lot of possibilities.