Search code examples
paypalpaypal-ipn

Is it possible to deactivate IPN for specific payments on paypal?


Our shop can handle IPNs (Instant Payment Notification) for regular payments.

We offer donations over paypal too, but can't handle this IPNs, because we don't keep track of the donations on the shop side. And don't want to atm.

Is it possible to deactive IPN for e.g. donations or do we need to create a seperate paypal account for this?

Thanks for any advice.


Solution

  • Set a notify_url for your donation going to a different location than your regular IPN script.
    As long as that location answers it with a HTTP 200 OK, it's fine for PayPal.

    So essentially you'd have:
    - Your store setting a proper notify_url for each transaction
    OR
    - An IPN URL set up on your PayPal Profile
    AND
    - A specific custom notify_url for donations. This can be a plain .html or .txt file.*

    This would work because notify_url overrides whatever is set up on your PayPal Profile.