Forums / Built-in Shipping and Payment Modules / Instant Payment Notification Preferences

Instant Payment Notification Preferences

Locked

Started by lplatz on 14 May 2008, 6:07 AM · Views: 2,755

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 May 2008, 6:07 AM
#1
lplatz avatar

lplatz

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Instant Payment Notification Preferences

Curious... I am troubleshooting why the product names are not showing up in either PayPal or in the admin section after a product purchase has been completed. In research/review of the postings on this topic, I noted that in my ZC admin, the suggested Instant Payment Notification URL provided after installing the PayPal IPN Module was an https:// domain location. The provided Automatic Return URL is also an https:// domain location.

Any ideas?

I'm using version ZC 1.3.8a

Thanks in advance!! - Les

14 May 2008, 9:49 PM
#2
lplatz avatar

lplatz

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Re: Instant Payment Notification Preferences

I using only one form of payment on my site, that being PayPal IPN - Website Payments Standard. After installation, ZC provided the following: Instant Payment Notification Preferences URL to: https://"https server root"/"store"/ipn_main_handler.php. In addition, the Website Payments Preferences set my ```
Automatic Return URL to:
https://"https server root"/"store"/index.php?main_page=checkout_process.


The above is the information I inserted into my PayPal profile under IPN Preferences ```
[IPN is turned on] 
Instant Payment Notification (IPN) URL: https://"https server root"/"store"/ipn_main_handler.php
```  Website Payment Preferences: ```
Auto Return: On
Return URL: https://"https server root"/"store"/index.php?main_page=checkout_process

I'm running ZC 1.3.8a

The end result is that neither PayPal or ZC Admin are logging the products being purchased.

Why is ZC using my https server versus the http server? What am I missing or what might be mis-configured in install configuration? This appears out of synch with all the posts I have read on this topic.

22 May 2008, 11:28 AM
#3
lplatz avatar

lplatz

New Zenner

Join Date:
Jan 2008
Posts:
28
Plugin Contributions:
0

Re: Instant Payment Notification Preferences

This is what I discovered after a lot of trial / error.

When setting your Instant Payment Notification Preferences in PayPal, the URL should not point to a secured server (https://). Stick with the direction provided in just about every post in this forum regarding setting up your ipn w/in your PayPal profile :: http://www.sitename.com/storename/ipn_main_handler.php.

A second note. If you have your site password protected to lock out visitors during maintenance or development, your ipn will not process correctly. I was using a .htaccess login. After shutting this off, all orders processed as designed.

In reading how ipn works, I was led to believe that the purchaser at the end of the PayPal purchase process needed to click the "return to site" link provided in the PayPal site. This step was necessary to complete the order w/in the Zen Cart admin section. This is not true. I tested several times w/out returning to my site and Zen Cart logged all the sales data regardless.

Lastly :: if you're doing a lot of trail purchase during your development, I highly suggest that you set up a sandbox account in PayPal: https://developer.paypal.com/cgi-bin/devscr?cmd=_login-done&login_access=0. You create two sandbox identities; a business account (seller) and a personal account (buyer). Use your sandbox business account information when completing the PayPal IPN section w/in the Payment Modules section in Zen Cart. For the mode, use https://www.sandbox.paypal.com/cgi-bin/webscr. This saves a ton of time backing out a bunch of .01 charges to your credit card. After you complete your developement, it is a good idea to run a real credit card through the process as a final check.

22 May 2008, 6:34 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Instant Payment Notification Preferences

lplatz:

In reading how ipn works, I was led to believe that the purchaser at the end of the PayPal purchase process needed to click the "return to site" link provided in the PayPal site. This step was necessary to complete the order w/in the Zen Cart admin section. This is not true. I tested several times w/out returning to my site and Zen Cart logged all the sales data regardless.
That's correct if you're working with a created PayPal account.
But if you're attempting to do a purchase without having created a PayPal account, then you will have to click to return to the site, since PayPal will ask you whether or not you want to create an account, before sending the IPN to your store to release the order.

At least, that's how it works at the present time. Whether they'll improve that in the future is uncertain.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2008, 6:44 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Instant Payment Notification Preferences

lplatz:

A second note. If you have your site password protected to lock out visitors during maintenance or development, your ipn will not process correctly. I was using a .htaccess login. After shutting this off, all orders processed as designed.
That's correct, which is why it's mentioned in the PayPal troubleshooting guide here: http://www.zen-cart.com/wiki/index.php/PayPal> ** Things to check if it's not working**

These are the common configuration errors:

  1. If it "was" working, but stopped, make sure PayPal's services are running properly. PayPal Live Server Status
  2. Make sure your site is not in down-for-maintenance mode.
    ** 3. Make sure your site does not have password-protection via .htaccess in order to get to the "store" area.
    **...For future readers, note that several additional detailed suggestions are in the same section of that article.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.