November 20, 2019 at 2:23 pm #14383OlgaParticipant
We encountered a problem after we’ve configured 2checkout settings in accordance with this guide: https://najeebmedia.com/blog/woocommerce-2checkout-payment-gateway-setup-guide/
Everything works fine when client makes purchase through web-site; but if a client pays via a link issued by 2checkout (they have an option where a special link can be constructed for custom amounts of money; it is independent from the web-site), client gets Fatal error message in the end. The payment goes through, but Fatal error message confuses customers and they try to pay again – this creates double payments.
There was no problem before we made changes in accordance with the guide (earlier Redirect URL setting on 2checkout pointed to a Thank you page on our web-site).
Could you advise how we could solve this Fatal error message? Or can we probably revert back to using our Thank you page (if this will not impact correct work of the plugin).
Here how Fatal error message looks like in full:
Fatal error: Uncaught Error: Call to a member function add_order_note() on boolean in /home/aidastyle/domains/aida-style.com/public_html/wp-content/plugins/wc-2checkout-payments-pro/inc/twoco.payment.php:628 Stack trace: #0 /home/aidastyle/domains/aida-style.com/public_html/wp-content/plugins/wc-2checkout-payments-pro/inc/twoco.payment.php(450): WC_Gateway_NM_TwoCheckout->verify_order_by_hash() #1 /home/aidastyle/domains/aida-style.com/public_html/wp-includes/class-wp-hook.php(286): WC_Gateway_NM_TwoCheckout->twocheckout_response(”) #2 /home/aidastyle/domains/aida-style.com/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #3 /home/aidastyle/domains/aida-style.com/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/aidastyle/domains/aida-style.com/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php(148): do_action(‘woocommerce_api…’) #5 /home/aidastyle/domains/aida-style.com/public_html/wp-includes/class-wp-hook.php(286): WC_API->handle_api_reques in /home/aidastyle/domains/aida-style.com/public_html/wp-content/plugins/wc-2checkout-payments-pro/inc/twoco.payment.php on line 628
The site is experiencing technical difficulties.
Thank you in advance,
Best Regards,November 21, 2019 at 12:16 pm #14396Jane BrianKeymaster
Thanks for reaching us, we have received your request. We will get back to you as soon as possible to response your question.November 21, 2019 at 1:53 pm #14410nmediaKeymaster
for now revert back to old settings so your site get normal flow for payment. And now can you please explain what does it means:
but if a client pays via a link issued by 2checkout (they have an option where a special link can be constructed for custom amounts of money; it is independent from the web-site), ??November 23, 2019 at 1:23 am #14425OlgaParticipant
I believe the documentation regarding that link is this: https://knowledgecenter.2checkout.com/Documentation/07Commerce/2Checkout-ConvertPlus/ConvertPlus_URL_parameters
The shop works fine right now, the problem is only with the functionality above. Will the shop still work fine if we revert back?
- You must be logged in to reply to this topic.