• Resolved robertrosanke

    (@robertrosanke)


    Hello.

    We have the plugin active for a short time. (Migrated from PayPal Plus.)

    At first glance everything seems to be working.

    We noticed an error. It has happened twice so far in the last weeks. It’s not reproducible for me.

    Process: a customer orders a product in the classic way via the checkout page and pays with PayPal.

    Classic PayPal buttons. Not PayPal checkout.

    Then the order is created and everything seems okay.

    What is striking, however, is that the order is created twice.

    • Once correct with all data.
    • And a duplicate of the order with status pending payment.

    The duplicate is missing billing information and shipping information.

    The payment method and the PayPal fees are also not visible on the admin page.

    The duplicate should never arise. It is not clear why it is/was created.

    What we also noticed: The IP address and the user agent that WooCommerce creates for each order indicate that the orders were created by a PayPal service.

    When ordering correctly, the customer IP address is unknown. A real user. The duplicate order appears to be ordered by a PayPal IP address. (Checked with https://www.findip-address.com/)

    The following entry can be found under WooCommerce ? Status:

    2023-08-13T17:12:32+00:00 CRITICAL Uncaught WooCommerce\PayPalCommerce\ApiClient\Exception\PayPalApiException: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-ORDER_ALREADY_COMPLETED in .../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php:577
    Stack trace:
    #0 .../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php(525): WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint->patch()
    #1 .../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php(296): WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint->patch_order_with()
    #2 .../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php(211): WooCommerce\PayPalCommerce\WcGateway\Proce in .../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php in Zeile 577

    In the Database, the duplicated order appears to have the same WooCommerce PayPal Payments metadata as the original, correct order. There is therefore only one order in the PayPal dashboard.

    Metadata:

    _customer_user_agent PayPal/AUHD-[redacted]
    _ppcp_paypal_intent CAPTURE
    _ppcp_paypal_payment_mode live
    _ppcp_paypal_order_id [redacted]

    That’s all we can report for now.

    What can you say about that? Is this a known issue? And if so, is a fix on the way?

    Edit: Don’t know which payment method the customer used exactly. Since the migration from PayPal-Plus to WooCommerce PayPal Payments, the WooCommerce backend no longer shows exactly which method the customer used. Only “PayPal”

    In the PayPal dashboard there is once “mobile payment” and once “online payment”. Not very helpful. I’m sorry I can’t figure that out.

Viewing 1 replies (of 1 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello?@robertrosanke

    Thank you for reaching out to us, we are here to help.

    This issue is a known problem, that will be resolved with our next release 2.2.1. At this moment, you can already download the beta version here, but we expect the official release to become available this week.

    There is some more information shared on this thread. I will mark this thread as resolve for now, since the problem is clear and already has a fix in place. Also, this GitHub thread is used for implementing the fix.

    Kind regards,
    Joost

Viewing 1 replies (of 1 total)
  • The topic ‘Some orders are automatically duplicated – without billing and delivery data’ is closed to new replies.