How to Enable PayPal Instant Payment Notification (IPN)

PayPal Instant Payment Notification (IPN) is a notification service that used to notify merchants about the PayPal transaction. This notification is sent to the URL which you have set in notify_url variable of the HTML payment form. Using the Notify URL you can get the transaction information, validate and store the payment data in the database.

If IPN is enabled, PayPal is sent the payment notification to the Notify URL. Means, you must enable PayPal IPN to work with Instant Payment Notification. Follow the step by step instructions to configure and setup Instant Payment Notification in your PayPal business account.

Define Notify URL

At first set the notify_url in the HTML Variable of the PayPal payment form. This URL is used by PayPal to posts information about the payment.

<input type="hidden" name="notify_url" value="https://www.codexworld.com/paypal_ipn.php">

Enable PayPal IPN

Follow the below steps to enable IPN on PayPal Sandbox or Live Business account.

  • Sign in to your PayPal Business Account
  • After successfully logged in, you would redirected to the account overview page.
  • At the top naivation menu bar, click the Settings (Gear icon). You will be redirected to the Profile page.
    paypal-business-account-settings-profile-codexworld
  • In the Profile page, navigate to the Selling tools tab. Under the Getting paid and managing my risk section, click the Update link of Instant payment notifications.
    paypal-business-selling-tools-ipn-update-codexworld
  • You will be redirected to the Instant Payment Notification (IPN) page. Click the Choose IPN Settings.
    paypal-sandbox-choose-instant-payment-notification-settings-codexworld.png
  • In the Edit Instant Payment Notification (IPN) settings page, Enter the Notification URL and enable the Receive IPN messages. Click the Save button.
    paypal-sandbox-notification-url-enable-ipn-codexworld

Now the PayPal will send the transaction notification to the specified Notify URL. After that, in the notify_url file (paypal_ipn.php), you will be able to retrieve the transaction information and store the payment data on the server.

Configure PayPal Auto Return and Payment Data Transfer on Business Account

Do you want to get implementation help, or enhance the functionality of this script? Click here to Submit Service Request

8 Comments

  1. Sufee Latif Said...
  2. Ian Hafkenschiel Said...
  3. Francis Said...
  4. Abubakar Said...
  5. Majed Said...
    • CodexWorld Said...
  6. Sarath Kumar Said...
  7. Chollo Said...

Leave a reply

keyboard_double_arrow_up