The plugin has worked well, but of late when used with the Invoice Payment for WooCommerce Plugin the plugin has begun to run into a fatal error whereas using it with WooCommerce natively, it has no problems. The issue was first encountered on Version 1.3.0 of this PayNow plugin. Updating it to Version 1.3.3 has not solved the issue.
The Invoice Payment for WooCommerce Plugin had not been updated since install and updating it has also not solved this issue.
Here are the details of the error.
Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /public_html/wp-content/plugins/Paynow-for-WooCommerce-master/includes/class-wc-gateway-non-block-paynow.php:517
Stack trace:
#0 /public_html/wp-includes/class-wp-hook.php(308): WC_Gateway_Paynow->receipt_page()
#1 /public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /public_html/wp-content/plugins/woocommerce/templates/checkout/order-receipt.php(44): do_action()
#4 /public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/userprofile0...')
#5 /public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(243): wc_get_template()
#6 /public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(59): WC_Shortcode_Checkout::order_pay()
#7 /public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output()
#8 /public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper()
#9 /public_html/wp-includes/shortcodes.php(355): WC_Shortcodes::checkout()
#10 [internal function]: do_shortcode_tag()
#11 /public_html/wp-includes/shortcodes.php(227): preg_replace_callback()
#12 /public_html/wp-includes/class-wp-hook.php(308): do_shortcode()
#13 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#14 /public_html/wp-includes/post-template.php(255): apply_filters()
#15 /public_html/wp-content/themes/rishi/template-parts/content-page.php(45): the_content()
#16 /public_html/wp-includes/template.php(785): require('/home/userprofile0...')
#17 /public_html/wp-includes/template.php(718): load_template()
#18 /public_html/wp-includes/general-template.php(204): locate_template()
#19 /public_html/wp-content/themes/rishi/page.php(29): get_template_part()
#20 /public_html/wp-includes/template-loader.php(106): include('/home/userprofile0...')
#21 /public_html/wp-blog-header.php(19): require_once('/home/userprofile0...')
#22 /public_html/index.php(17): require('/home/userprofile0...')
#23 {main}
thrown in /public_html/wp-content/plugins/Paynow-for-WooCommerce-master/includes/class-wc-gateway-non-block-paynow.php on line 517