• Resolved A Z

    (@ahmedzeidan)


    Hi there,

    I am seeing a critical error as below, please advise:

    2021-10-13T00:08:12+00:00 CRITICAL Uncaught TypeError: Argument 4 passed to WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentsEndpoint::__construct() must be an instance of WooCommerce\PayPalCommerce\ApiClient\Factory\CaptureFactory, instance of WooCommerce\WooCommerce\Logging\Logger\WooCommerceLogger given, called in /home/xyz.com/xyz/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/services.php on line 147 and defined in /home/xyz.com/xyz/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-paymentsendpoint.php:73
    Stack trace:
    #0 /home/xyz.com/xyz/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/services.php(147): WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentsEndpoint->__construct()
    #1 /home/xyz.com/xyz/public_html/wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/containers/src/DelegatingContainer.php(116): Woo in /home/xyz.com/xyz/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-paymentsendpoint.php on line 73

    Also, I am noticing that the plugin created 10 duplicated orders with status “Cancelled” that has the same details for a processed/captured order successfully via PayPal Credit Card Processor, check the log, i see many duplicated calls via the API

    (
        [code] => 201
        [message] => Created
    )

    Please advise how to resolve this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @ahmedzeidan,

    In version 1.6.0 we fixed an issue that could result in multiple orders being created with the PayPal Card Processing. These additional orders remained in “Pending payment” and were usually canceled by the WooCommerce “Hold-stock” setting (without sending any notification).
    This could happen when different checkout fields like the billing country were modified multiple times while the PayPal Card Processing was selected in the checkout. This could cause ?wc-ajax=ppc-create-order to execute multiple times.

    The original issue appears to be resolved, but there are a few isolated reports like yours remaining where something else could cause similar behavior.
    Could you please share with us an URL to the site where this happened so we can perform a few checks?
    The log entry is around the same time as the order I assume? It seems like this issue could have been introduced with the extended logging from the same 1.6.0 update. We will investigate deeper and try to address it for the next update.
    Thanks for the report!

    Kind regards,
    Niklas

    Thread Starter A Z

    (@ahmedzeidan)

    Hi @niklasinpsyde

    No worries… Unfortunately, I cannot provide more status info on these issues as I have switched away from PP Credit Card processor for the meantime since I noticed many issues when users are checking out.

    Looking forward to more stability and continues development of this part of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicated orders + Critical error’ is closed to new replies.