• Resolved Daniele

    (@dabesa)


    Dear support,

    We have a serious issue, with repeated orders from the same customer marked as paid using the Paypal transaction ID of the initial order.

    In the order notes, the Paypal order and Capture ID of the unpaid order are the same as the paid order.
    This is indeed critical because we have to recover the unpaid transactions from the customers.

    It seems the exact same issue as this:
    https://ww.wp.xz.cn/support/topic/repeat-customer-order-applies-payment-and-tracking-info-to-previous-order/

    I thought it was due to Redis, but this was disabled last month.
    We use WP-Rocket, no unusual caching configuration that I can see.

    Can you help?

    Thanks

    • This topic was modified 5 months, 2 weeks ago by Daniele.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @dabesa

    Thank you for contacting Payment Plugins. Issues related to duplicate orders will not be caused by an issue with this plugin because the PayPal plugin does not have any code that creates WooCommerce orders.

    Order objects are always fed to the PayPal plugin for payment processing; it does not manage the creation of the WooCommerce order. Give that the unpaid orders have the exact same transaction ID as existing orders, that indicates me you have some code on your site that’s duplicating order objects.

    This is indeed critical because we have to recover the unpaid transactions from the customers.

    I don’t think those orders are related to a new customer. It sounds to me like an existing order is being replicated. Take a look at the creation time of these duplicate orders and that can help you identify where in the checkout lifecycle the order is being duplicated.

    For example:

    1. Is the duplicate order being created within seconds of the original order? That means you have some code that’s hooking in to the checkout flow.
    2. Is the duplicate order at a later timestamp, like minutes or hours? If so that points to a possible cron job.

    Kind Regards

    Thread Starter Daniele

    (@dabesa)

    Hello @mrclayton ,

    Thanks for the input, just to clarify they are not duplicated orders.
    They are separate orders, with different dates and items, having the same PP transaction ID – far more bizarre!

    Here 2 screenshots:

    1. Order 78458 from Dec 10:
      https://pasteboard.co/aoHfDdSbNxu8.png
      https://pasteboard.co/1i4G1C6CiwWa.png
    2. Order 78533 from Dec 12 (same customer, different IP, different products):
      https://pasteboard.co/e3rx4vGWsA1q.png
      https://pasteboard.co/toO7ouXIJb5h.png

    Note that Paypal ID and “Net payout” are the same, even if the order totals are of course different.

    Thanks

    Plugin Author Clayton R

    (@mrclayton)

    Hi @dabesa

    Thank you for those details. It seems like there is some process that’s grabbing order data from a previous order and copying it over to the new order. Because the PayPal plugin is not involved in the order creation logic I don’t see any possibility that this issue originates from this plugin.

    For order #78533, if you login to the paypal.com dashboard can you find a different transaction ID that maps to that order? If you can that would provide a clue that the old order data is being copied over after the payment process completes.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.