• c77m

    (@c77m)


    It appears that visitors can add items to their cart at the same time, even if there is insufficient quantity. The quantity available isn’t reduced until the payment is complete (at least with PayPal IPN), so if two people submit orders about the same time, it is possible for the quantity available to go down to -1. (As a result, we oversold a number of items and had to provide refunds and explanations to upset customers.)

    Additionally, when a customer submits payment via PayPal eCheck, the order should be successful but the IPN message from eShop indicates a failed payment. The order is marked as failed, and the quantity is not deducted. So we have at least one customer whose payment will come through successfully, but what he ordered will be sold out before the payment completes. We have a few days to wait before we see what happens after PayPal completes the payment, whether or not eShop will deduct the item from stock or not (which is already below 0, thanks to the aforementioned problem.)

    http://ww.wp.xz.cn/extend/plugins/eshop/

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter c77m

    (@c77m)

    (In the interest of trying to be as productive as possible, I’m playing dumb at this point and will ask some stupid questions… it’s meant to identify where things are going wrong, no disrespect intented.)

    That and your subsequent emails were from PayPal and have no direct relationship with the ability of your site to communicate with PayPal.

    The emails originated from my dreamhost server per the headers, and at the bottom of each is the text: Regards, Your friendly automated response., which seems to be coming from eshop/paypal.php line 382:
    382 $body .= "\n\n".__("Regards, Your friendly automated response.",'eshop')."\n\n";

    This looks like it is certainly coming from eShop, and contains Paypal transaction information – so there must be communication happening somewhere. (The emails that originate from paypal are going to our primary paypal email address, which configured in eShop Gateways tab but these emails are from the “eShop From email address” configured in eShop general settings.)

    eShop leaves the order in Pending for up to 4 days – after which time it is moved to Failed

    Something is triggering the wrong action here, whether it’s something I have misconfigured or something else.. Because after I receive the above email from my webserver, the transaction was moved immediately to Failed. Something happened within ~60 seconds of Paypal accepting the order that caused it to be marked Failed.

    I will start looking at the code to see if I can better understand the steps and the order they are taken so I can be more helpful in trying to identify where the problem occurs.

    Thread Starter c77m

    (@c77m)

    Here is the bit of code in paypal.php that appears to cause the transaction to change to Failed.. It looks for Paypal to report status of “Completed” or “Refunded”, otherwise it fails the transaction. So when PayPal’s IPN said the status was “Pending”, eShop failed it.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    If eChecks via PayPal are working for other people, does this mean I have something configured incorrectly such that PayPal sends this Pending message when it shouldn’t?

    Anonymous User

    (@anonymized-3085)

    don’t allow echecks, eShop doesn’t handle them.

Viewing 3 replies - 16 through 18 (of 18 total)

The topic ‘[Plugin: eShop] Quantity control doesn't work with simultaneous orders’ is closed to new replies.