Title: Error &#8220;SyntaxError: JSON.parse: &#8230;&#8221;
Last modified: September 4, 2022

---

# Error “SyntaxError: JSON.parse: …”

 *  Resolved [webdesignpt](https://wordpress.org/support/users/webdesignpt/)
 * (@webdesignpt)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-syntaxerror-json-parse/)
 * Hi,
 * We’ve installed Zahls.ch Woocommerce plugin in order to accept Twint payments.
 * Twint Business account was created and the Store UUID added on the connection
   settings of my Zahls.ch account but ther’s an error when Twint payment is selected
   on the store: “SyntaxError: JSON.parse: unexpected character at line 1 column
   1 of the JSON data”
 * We’ve activated the debug on the website and here are the logs:
 * [02-Sep-2022 06:03:07 UTC] PHP Notice:  Undefined index: zahls-allow-recurring
   in /home/mysite/public_html/wp-content/plugins/zahls-ch-payment-gateway/woo-zahls-
   gateway.php on line 192
    [02-Sep-2022 06:03:07 UTC] PHP Fatal error:  Uncaught
   Error: Call to a member function getId() on null in /home/mysite/public_html/
   wp-content/plugins/zahls-ch-payment-gateway/woo-zahls-gateway.php:237 Stack trace:#
   0 /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.
   php(982): WC_Zahls_Gateway->process_payment(89232) #1 /home/mysite/public_html/
   wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1206): WC_Checkout-
   >process_order_payment(89232, ‘zahls’) #2 /home/mysite/public_html/wp-content/
   plugins/woocommerce/includes/class-wc-ajax.php(461): WC_Checkout->process_checkout()#
   3 /home/mysite/public_html/wp-includes/class-wp-hook.php(307): WC_AJAX::checkout(”)#
   4 /home/mysite/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”,
   Array) #5 /home/mysite/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(
   Array) #6 /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-
   wc-ajax.php(90): do_action(‘wc_ajax_checkou…’) #7 /home/mysite/public_html/wp-
   includes/class-wp-hook.php(307): W in /home/mysite/public_html/wp-content/plugins/
   zahls-ch-payment-gateway/woo-zahls-gateway.php on line 237
 * We really appreciate your help solve this.
 * It is very important to have Twinty payments working ASAP.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ivan Louis](https://wordpress.org/support/users/ivanlouis/)
 * (@ivanlouis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/error-syntaxerror-json-parse/#post-15977808)
 * Thank you. This seems to be a specific problem with incorrect credentials. We
   answered your question directly.
 * Best
    Ivan

Viewing 1 replies (of 1 total)

The topic ‘Error “SyntaxError: JSON.parse: …”’ is closed to new replies.

 * ![](https://ps.w.org/zahls-ch-payment-gateway/assets/icon-256x256.gif?rev=2661443)
 * [zahls.ch Credit Cards, PostFinance and TWINT for WooCommerce](https://wordpress.org/plugins/zahls-ch-payment-gateway/)
 * [Support Threads](https://wordpress.org/support/plugin/zahls-ch-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/zahls-ch-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zahls-ch-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zahls-ch-payment-gateway/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ivan Louis](https://wordpress.org/support/users/ivanlouis/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/error-syntaxerror-json-parse/#post-15977808)
 * Status: resolved