Call to undefined method “discardNonPersistentHeaders”
-
Hi,
When we tried to connect your plugin with stripe, website went down and we got this error on it:
Call to undefined method Stripe\Util\RequestOptions::discardNonPersistentHeaders()...
Both WooCommerce and your Stripe For WooCommerce plugins are updated, and I tried deactivating W3 Total Cache to see if that will help, but without luck.
It’s a live website so I am not conformable with deactivating all other plugins, but if it’s required, I will do it.
Full error message:
Fatal error: Uncaught Error: Call to undefined method Stripe\Util\RequestOptions::discardNonPersistentHeaders() in /home/teachyog/public_html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/BaseStripeClient.php:135 Stack trace: #0 /home/teachyog/public_html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/Service/AbstractService.php(59): Stripe\BaseStripeClient->request('post', '/v1/customers', Array, Object(Stripe\Util\RequestOptions)) #1 /home/teachyog/public_html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/Service/CustomerService.php(86): Stripe\Service\AbstractService->request('post', '/v1/customers', Array, Array) #2 /home/teachyog/public_html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-api-operation.php(93): Stripe\Service\CustomerService->create(Array, Array) #3 /home/teachyog/public_html/wp-content/plugins/woo-stripe-payment/includes/class-wc-stripe-customer-manager.php(60): WC_Stripe_API_Operation->__call('create', Array) #4 /home/teac in /home/teachyog/public_html/wp-content/plugins/woo-stripe-payment/vendor/stripe/stripe-php/lib/BaseStripeClient.php on line 135
Can you please help?
- The topic ‘Call to undefined method “discardNonPersistentHeaders”’ is closed to new replies.