• Resolved Jake Ward

    (@jakeward)


    Hi,

    I’m receiving errors regularly were payments aren’t going through and it’s resultng in lost custom. I’ve done some digging in the logs and found the following which looks to be related. How can this be fixed?

    2021-11-04T19:25:07+00:00 CRITICAL Uncaught TypeError: Argument 3 passed to WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint::request_response_string() must be of the type array, object given, called in /public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-requesttrait.php on line 40 and defined in /public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-requesttrait.php:52
    Stack trace:
    #0 /public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-requesttrait.php(40): WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint->request_response_string('https://api.pay...', Array, Object(WP_Error))
    #1 /public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-orderendpoint.php(233): WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEn in /public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/class-requesttrait.php on line 52

    Thanks

    • This topic was modified 4 years, 4 months ago by Jake Ward.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @jakeward,

    Apologies for the trouble. The upcoming plugin update includes a fix for scenarios that could cause this error message.
    It should be released in the coming days, but you can download a preview from our GitHub repo here: https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/1.6.2-test1
    Our internal testing is not done yet, but so far it’s looking good. Feedback is always appreciated though if you would like to give it a try before the official release. Thanks!

    Kind regards,
    Niklas

    Thread Starter Jake Ward

    (@jakeward)

    Great, thank you! So do you think release is likely by mid next week?

    Also, for a period orders have been failing and going in as ‘pending payment’. Any idea why this may be happening?

    Thanks!

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @jakeward,

    The plugin goes through multiple rigorous testing procedures, so it takes a little while. You can rest assured that the release will happen once everything has been verified.

    To learn more about these orders, we would be interested in your plugin log files.
    It’s difficult to tell without insight into the log files for these transactions. These log files are only written when “Logging” is enabled in the plugin settings.
    If enabled, then every transaction will create a log entry that can be accessed from here:
    WooCommerce > Status > Logs > select “woocommerce-paypal-payments-[…]” in the dropdown and click on view. 

    If “Logging” was not yet enabled, I suggest doing so to collect some context information until the plugin operates as intended for you.
    You can share the logs either here in the forums or privately with us from here:
    https://paypal.inpsyde.com/docs/request-support/
    Thanks!

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    This one should be fixed in the latest version 1.6.2, so I will mark this thread resolved. Feel free to reach out or reopen this thread if this particular issue comes up again.
    Thanks!

    Kind regards,
    Niklas

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

The topic ‘API Endpoint Error’ is closed to new replies.