Thread Starter
Kyle T
(@kyle9296)
This is my error log…
2022-05-16T05:45:30+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_total() on null in /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1227
Stack trace:
#0 /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(448): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->is_cart_price_total_zero()
#1 /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(229): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_button_wrapper_registrar()
#2 /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(57): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_wrapper()
#3 /home/customer/www/phdtackle.com/public_html/wp-includes/class-wp-hook.php(307): WooCommerce\PayPalCommerce\ in /home/customer/www/phdtackle.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1227
Hi @kyle9296,
The message TRANSACTION_REFUSED and the error in the log entry are not directly related to each other.
This error should be resolved in the upcoming plugin update 1.9.0 though.
But this API response TRANSACTION_REFUSED is coming directly from PayPal. The PayPal MTS is usually in a better position to assist with refused transactions.
Two potential workarounds for the error message from your log would be either a temporary downgrade to version 1.7.0 or alternatively trying it with this test version that implements the fix from the next release.
I hope that helps!
Kind regards,
Niklas
Thread Starter
Kyle T
(@kyle9296)
The ‘transaction refused’ error/alert is understandable. Everyone trying to check out with a CC was getting that error using version 1.8.0. If they chose PayPal Checkout it worked with no issues. I rolled back to version 1.7.1 which appears to be working.
Hi @kyle9296,
Apologies for getting back just now!
We regret the trouble but would be happy to learn more about the payment failures you describe.
Following update 1.8.0 some users reported compatibility issues with certain third-party plugins (like certain Siteground plugins), which have been addressed for the most part in update 1.8.1. If the problem persists for you, could you maybe give it a try with this pre-release of the upcoming 1.8.2 update?: https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/1.8.2-test1
Feedback about whether or not this helps is always appreciated. Thanks!
Kind regards,
Niklas
Since we haven’t heard back from you, I’m going to mark it as resolved.
In case you’re still having problems, feel free to let us know!