Support » Plugin: WP eCommerce » [Plugin: WP e-Commerce] PayPal Standard and IPN for electronic/digital goods fails

  • I am using WordPress 3.1.2 and WP e-Commerce Version 3.8.4 and PayPal Payments Standard 2.0. I have a store of electronic/digital goods (sheet music in PDF format).

    WP e-Commerce is supposed to be able to work with Paypal, enabling Paypal to submit accept payment and then notify WP e-Commerce of the purchase by changing the status to Accepted Payment. The buyer would then receive a Transaction Results page with a link to download their electronic goods. They would also receive an email with the same links.

    But this doesn’t work, at least it doesn’t work with this version of WP e-Commerce. Instead, I have to manually return to the website to change the status of an order to Accepted Payment. The user, of course, doesn’t like this delay as they were expecting to download the product right away.

    I’ve documented my settings and opened a thread on their forum.

    * http://getshopped.org/forums/topic.php?id=21713
    * http://getshopped.org/forums/topic.php?id=20733

    I’m hopeful that the developers will be able to reproduce and fix this bug in a release. In the meantime, I’ve had to close my online store.

    http://wordpress.org/extend/plugins/wp-e-commerce/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hi Jason,

    I just replied to a thread on the getshopped.org forms with details of a fix to try …

    Thread Starter jasonapearce

    (@jasonapearce)

    Lee,

    Thank you very much for offering to help. The updated code also does not process PayPal Standard IPN’s correctly, which is too bad.

    Just to be clear, I did the following.

    1. I replaced the contents of paypal-standard.merchant.php with http://code.google.com/p/wp-e-commerce/source/browse/trunk/wpsc-merchants/paypal-standard.merchant.php

    2. I configured WP e-Commerce and PayPal Standard using the settings I documented here: http://getshopped.org/forums/topic.php?id=21713

    3. I then attempted to purchase something. WP-Admin > Store Sales still lists paid purchases as Incomplete Sale and is waiting for me to manually change it to Accepted Payment

    Unless I have something configured incorrectly (documented in the link I provided), PayPal IPN for PayPal standard still doesn’t work.

    I appreciate, however, your effort to assist. Thank you.

    Hi, You ever get this sorted? I’m having the same issue when I set paypal to my client’s account, however when it’s set to mine I get the correct transaction response. so I’m think something at the PayPal end.

    My account is Paypal Premier, his is business…

    Hi,

    Not yet I don’t think – you can follow progress here:

    http://code.google.com/p/wp-e-commerce/issues/detail?id=603

    Thread Starter jasonapearce

    (@jasonapearce)

    Patnz,

    Correct. The issue is not yet resolved. Lee and I have performed some testing for developers and made comments here:

    * http://code.google.com/p/wp-e-commerce/issues/detail?id=603

    Two more forum threads on this issue may also be found here:

    * http://getshopped.org/forums/topic.php?id=21713
    * http://getshopped.org/forums/topic.php?id=20733

    Our issues pertain to PayPal Standard. PayPal Premier likely has a separate .php file to process those transactions.

    Could it be your Paypal IPN settings within your Paypal page?

    I ask because we’re not experiencing this on any of our sites internally. We’ll keep trying though!! And thanks Lee for adding this to Google Code 🙂

    Hi Dan,

    Certainly “Could be”, but I think it’s pretty unlikely. I’ve got the site that has the problem set up to log a copy of every POST request it receives. Each transaction typically generates one or two POST requests after the user has paid:

    One is sent when the user clicks to return to the store. Obviously not everyone does this – so it shouldn’t be relied on for changing the order status, sending confirmation emails and/or setting up download links for the user.

    The other is the IPN notification from PayPal.

    So, at least in my case, PayPal are sending IPN HTTP POSTs, but they’re not doing “the right thing”. Happy to provide further info (E.g. I can see exactly what’s being passed in by the IPN notice) if you’ve got someone that can look at this. I’d do it myself, but the whole transaction results stuff is a black hole to me 🙂

    Thread Starter jasonapearce

    (@jasonapearce)

    Mufasa,

    I’ll be the first to admit that the issue may be a configuration error either with my WP e-Commerce or PayPal Standard IPN settings. Admittedly, I’ve had some difficulty finding clear documentation as to what the optimal settings should be, so I’ve tried and tested many configuration settings.

    I’ve documented two of my settings in this forum:

    * http://getshopped.org/forums/topic.php?id=21713

    Leewillis77 was kind enough to suggest that I make some modifications to my PayPal settings, which I did. Sadly, I did not receive a different outcome in results.

    Mufasa, if you have any configuration suggestions that you would like for me to try (other than what I’ve already tested here http://getshopped.org/forums/topic.php?id=21713), I would be happy to do so.

    Thank you for your time.

    I’ve added quite a few notes to the bug report.

    For me, 3.8.4 + the latest paypal-standard.merchant.php file from SVN works perfectly for me AS LONG AS …. you configure your PayPal module with your “primary” PayPal email address.

    The current code fails to validate the payment if you set up the PayPal settings within WP e-Commerce with anything other than your main PayPal email address.

    Thread Starter jasonapearce

    (@jasonapearce)

    Version 3.8.5 that was posted three days ago resolves this issue. I’d like to thank leewillis77 for his efforts.

    And to be clear, IPN within Paypal needs to be enabled. Here is where you’ll find those settings:

    Paypal.com > My Account > Profile > My selling tools > Instant payment notifications > Update
    * Notification URL: http://www.yourdomain.com
    * IPN messages: Receive IPN messages (Enabled)

    I’m also suffering from the same problem. I’m using WP e-Commerce 3.8.7.5 with WordPress 3.3.1.

    I’ve set the Payment to “PayPal Payments Standard 2.0”

    username: me@mydomain.com
    URL: https://www.paypal.com/cgi-bin/webscr
    IPN: Yes
    Send shipping details: No
    Address Override: No

    In PayPal the IPN logs show that they’ve been sent and from the logs I can see ‘payment_status=Completed’ which I presume is what should trigger the Accepted Payment.

    The PayPal settings have been changed to have the IPN to both off and on and I’ve tried different URL configurations including http://www.mydomain.com and http://www.mydomain.com/products-page/transaction-results/?ipn_request=true

    The Transaction results page on the WP site still refuses to change the order status from “Incomplete Sale” to “Accepted Payment” and activate the download links although it does say “Thank you, your purchase is pending, you will be sent an email once the order clears.”

    I’ve tested in IE9, Chrome and FF9.

    The required emails are being sent to the customer and store owner. I’ve now run out of options and configurations to try. The only thing I haven’t tried is to switch off all other plugins in cases there’s a conflict somewhere.

    Can anybody help.

    Andy,

    I’ve got PayPal Payments Standard 2.0 working (including the IPN notifications and automatic updating of the WordPress order status to Accepted Payment on WordPress 3.3.1 and WPEC 3.8.7.5 (which returns the customer to the correct Transaction Results page with an active product download link. One caveat, my configuration is set up on the PayPal Sandbox test environment, I’ve not yet gone live on the site. Your settings look fine, I’ve basically got the exact same settings with the exception that my URL setting is: https://www.sandbox.paypal.com/cgi-bin/webscr.

    One question, did you also set your notification URL and IPN setting within your PayPal account profile (not your WPEC payment settings) as noted by Jason above?

    I will say that this is my first foray into using WPEC, and I’ve been VERY underwhelmed by the quality of documentation and support available for the standard features. PayPal Payments Standard 2.0 seems to be the only payment gateway that works, at least on WP 3.3.1. I’ve been unable to get PayPal Express Checkout 2.0 to work OR Google Checkout. Both PayPal Express and Google Checkout do not handle the automatic order status notifications from either PayPal or Google. The test charges go through fine on both PayPal Express and Google Checkout, but are not processed correctly by WPEC. I posted on the GetShopped forums but haven’t seen any response…

    wmsedgar, If you have any free time at all I would be extremely grateful if you could help me get everything working to the point you have it. I still cant get everything with my digital download product to work automatically.

    I am also, in the Sandbox test environment.
    PayPal Payments Standard 2.0
    IPN enabled on both sides by the way

    How were you able to have paypal return the user to to the page with a unique download ID?

    Ultimately, I would also like each user to have a user account so that at any time they can log in and re download their products from any computer. Not sure what is required with that but I could pay you for your time.

    Thanks for any tips to getting the Point of Purchase functionality to perform correctly though. Really appreciate it.

    behmer,

    I’d make sure you have all your store settings correctly set up with products, variations, file attachments (to variations if appropriate), PayPal account settings (sounds like you’ve verified that already), etc. Once the order is completed in the PayPal sandbox, you should immediately be returned to the Transaction Results page on your site, which should include a download link if everything went through successfully. It’s most likely a configuration issue. Once you complete the order in the PayPal sandbox, what is the order status within your WPEC Sales Dashboard in your WP Admin area? Do the orders show as Incomplete?

    As far as setting up each user with an account to download to any computer at a later date, an easy way to do that is to set up a download page for the product and use the Members plugin to create a new role that specifically has access, then require each customer who purchases to either set up a user account themselves, or create it yourself with their information after they complete the purchase and then add that user to the role that has access to the product download page.

    I hope that helps. I can be reached via bill.edgar@oaktondata.com if you’d like to discuss further.

    It just show them as Order Received now. Still no redirect after purchase.

    Thanks for the help! If I cant figure out the membership thing I will definitely email you.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: WP e-Commerce] PayPal Standard and IPN for electronic/digital goods fails’ is closed to new replies.