• Resolved kattouf

    (@kattouf)


    Hi,

    I am using Woo subscriptions and paypal payments, when i try to change the payment method i get critical error message and this in log file.:

    https://ibb.co/Cw1HDjW
    https://ibb.co/Gk98hvg

    [18-Jul-2024 17:53:00 UTC] PHP Fatal error: Uncaught TypeError: WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint::order(): Argument #1 ($id) must be of type string, null given, called in /home/xxxxxkneads/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php on line 495 and defined in /home/xxxxxkneads/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php:460
    Stack trace: 0 /home/xxxxxkneads/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php(495): WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint->order(NULL) 1 /home/xxxxxkneads/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-change-payment-gateway.php(335): WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway->process_payment(426687) 2 /home/xxxxxkneads/public_html/wp-includes/class-wp-hook.php(324): WC_Subscriptions_Change_Payment_Gateway::change_payment_method_via_pay_shortcode(”) 3 /home/xxxxxkneads/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 4 /home/xxxxxkneads/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 5 /home/xxxxxkneads/public_html/wp-settings.php(717): do_action(‘wp_loaded’) 6 /home/xxxxxkneads/public_html/wp-config.php(100): require_once(‘/home/xxxxxkne…’) 7 /home/xxxxxkneads/public_html/wp-load.php(50): require_once(‘/home/xxxxxkne…’) 8 /home/xxxxxkneads/public_html/wp-blog-header.php(13): require_once(‘/home/xxxxxkne…’) 9 /home/xxxxxkneads/public_html/index.php(17): require(‘/home/xxxxxkne…’) 10 {main}

    thrown in /home/xxxxxkneads/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php on line 460

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @kattouf

    Thanks for reaching out to us, we’re here to help.

    I can confirm that this is the scenario in which I was able to reproduce the issue you described. I have already forwarded this to our developers for further investigation.

    Please rest assured that we are looking into this as a priority, and I will update this thread as soon as I have more information to share.

    Kind Regards,

    Krystian

    i am also getting the same issue

    WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint::order() must be of the type string, null given, called in /home/aurootlab/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php on line 474 and defined in /home/aurootlab/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php:460

    customers get failed orders when paying from advance card processing.

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @resolveissue

    Please create a separate thread for your issue to keep the discussions organized and focused.

    Thank you in advance!

    Kind regards,
    Krystian

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.