Using PayPal IPN (Instant Payment Notification) with ZenCart

Isolated Sandbox to test your ecommerce solutions

NOTE: This article assumes you already have the following:

• PayPal Business or Premier account

• ZenCart is installed

• You have already Enabled and configured PayPal Express Checkout inside ZenCart

Step 1: Enabling IPN (Instant Payment Notification) at PayPal

1. Log into your PayPal Business or Premier account and navigate to the profile section



2. Once the profile overview loads click on the “Instant Paymetn Notification Preferences” Link Under the “Selling Preferences” header



3. Once the page loads click on the "Edit" button so that you can either set up or modify your preferences.



4. If not already done so, you wil need to place a checkmark in the box on this page in order to enable IPN for your account. Then you enter the Instant Payment Notification URL in the box and click "Save". Your IPN Notification URL will look something like "http://www.your- site.com/your-ZenCart-directory/ipn_main_handler.php".



5. Once this is done you will need to go back to the "Profile" section of your account.



Step 2: Enabling Express Checkout Within Zencart Payment Modules

6. Click on the "Website Payment Preferences" link under "Selling Preferences:.



7. Most of the options on this screen are up to your personal preference. However, there are two things you MUST do on this page:

• Make sure that "Auto Return for Website Payments" is set to "ON"

• Add the "Auto Return" URL. Your "Auto Return" URL will look something like "http://yoursite.com/yourinstalldirectory/index.php?main_page=checkout_process"



Step 2: Enabling IPN within ZenCart

1. Login to ZenCart Admin



2. From the top menu, hover over "Modules" and click on "Payment".



3. Click on "PayPal IPN" in the "Payment Modules" list. Where prompted, click on the "Install" button.

4. Enter your PayPal business email address and then scroll to the bottom of the page and click "Update".



Congratulations! Zencart is now ready to use PayPal IPN.

Add Feedback