• Resolved Hussam barbour

    (@freephp-1)


    I use klarna method

    Fatal error: Uncaught Error: Call to undefined method Stripe\PaymentIntent::toArray() in /home/alarabisch/public_html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-payment-intent.php:50 Stack trace: #0 /home/alarabisch/public_html/wp-content/plugins/woo-stripe-payment/includes/abstract/abstract-wc-payment-gateway-stripe.php(393): WC_Stripe_Payment_Intent->process_payment(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Payment_Gateway_Stripe_Klarna)) #1 /home/alarabisch/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1050): WC_Payment_Gateway_Stripe->process_payment(84189) #2 /home/alarabisch/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1279): WC_Checkout->process_order_payment(84189, ‘stripe_klarna’) #3 /home/alarabisch/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(481): WC_Checkout->process_checkout() #4 /home/alarabisch/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout(”) #5 /home/alarabisch/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #6 /home/alarabisch/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/alarabisch/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(94): do_action(‘wc_ajax_checkou…’) #8 /home/alarabisch/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax(”) #9 /home/alarabisch/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array) #10 /home/alarabisch/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /home/alarabisch/public_html/wp-includes/template-loader.php(13): do_action(‘template_redire…’) #12 /home/alarabisch/public_html/wp-blog-header.php(19): require_once(‘/home/alarabisc…’) #13 /home/alarabisch/public_html/index.php(17): require(‘/home/alarabisc…’) #14 {main} thrown in /home/alarabisch/public_html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-payment-intent.php on line 50

Viewing 1 replies (of 1 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @freephp-1

    The class and method Stripe\PaymentIntent::toArray() are part of the Stripe PHP library. That error you’re getting indicates you have multiple Stripe plugins enabled and the other plugin is using an outdated Stripe PHP SDK version.

    Please check your enabled plugins and see if they are including an old version of the Stripe PHP SDK.

    Kind Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Klarna Error’ is closed to new replies.