Title: &quot;SyntaxError: JSON.parse:&quot; after  buying
Last modified: August 30, 2016

---

# "SyntaxError: JSON.parse:" after buying

 *  [Amanddy](https://wordpress.org/support/users/amanddy/)
 * (@amanddy)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/)
 * H. when i make a payment i get an error :
    SyntaxError: JSON.parse: unexpected
   character at line 1 column 1 of the JSON data
 * but the payment is done.. do you know where is the problem?
 * [https://wordpress.org/plugins/woocommerce-braintree-payment-gateway/](https://wordpress.org/plugins/woocommerce-braintree-payment-gateway/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [HarryComa](https://wordpress.org/support/users/harrycoma/)
 * (@harrycoma)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423129)
 * Same here, came with 2.4.x WooCommerce update.
 *  [KiwiGen](https://wordpress.org/support/users/kiwigen/)
 * (@kiwigen)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423137)
 * Yup me too (except the payment isn’t done). Came with the update. Anyone found
   a solution yet?
 *  [Robel Hailu](https://wordpress.org/support/users/robel-hailu/)
 * (@robel-hailu)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423142)
 * I have same experience since the the 2.4 WooCommerce update. Is there anyone 
   knows what will be the problem.
 *  [HarryComa](https://wordpress.org/support/users/harrycoma/)
 * (@harrycoma)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423144)
 * The plugin needs to be updated to support WooCommerce 2.4
    The Json error is 
   one of the most common errors on old plugins with WooCommerce 2.4.x 2 solutions
   to make it work, revert back to older WooCommerce version, or hack the plugin
   yourself. I tried the last one but didnt get it to work completely.
 * I gave up and went with WooThemes plugin instead, too much loss of orders.
 *  [Habibillah](https://wordpress.org/support/users/habibillah/)
 * (@habibillah)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423228)
 * I get some error and just make pull request for this issue. if you can’t wait,
   you can grab from [https://github.com/habibillah/woocommerce-braintree-payment-gateway](https://github.com/habibillah/woocommerce-braintree-payment-gateway)
 *  [mace-to](https://wordpress.org/support/users/mace-to/)
 * (@mace-to)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423272)
 * I downloaded the plugin from there, but still shows the same error as the first
   post mentions it. The plugin is uploaded on Git 10 months ago, this error is 
   from 2 months ago, so i think that Git plugin will not solve the error. If you
   find any solutions, please share it. Thanks
    p.s. It works fine with latest version
   of 2.3
 *  [publicradio](https://wordpress.org/support/users/publicradio/)
 * (@publicradio)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423281)
 * I am also getting a JSON error when I try to commit an order through Braintree.
 * I tried to downgrade to 2.3.12, but when I do this, the billing details won’t
   even load on the checkout page. There’s just a spinner as though something is
   loading, but it never completes.
 * I guess that leaves me with one option, which is to hack the plugin. How do I
   do this?
 *  [publicradio](https://wordpress.org/support/users/publicradio/)
 * (@publicradio)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423284)
 * OK, so my problem was related to two problems: the aforementioned woocommerce
   incompatibility, and a conflict with Subscriptio, a different Woocommerce plugin.
 * Rolling back Woocommerce and disabling Subscriptio fixed the problem when Braintree
   is in sandbox mode, but when it’s attached to a live Braintree account, it doesn’t
   work. It just returns and empty error box. Even when I turn on debugging, I can’t
   get it to actually return an error. But the order does not go though.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘"SyntaxError: JSON.parse:" after buying’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-braintree-payment-gateway/assets/icon-128x128.
   png?rev=3363013)
 * [Payment Gateway Braintree WooCommerce](https://wordpress.org/plugins/woocommerce-braintree-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-braintree-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-braintree-payment-gateway/reviews/)

 * 8 replies
 * 7 participants
 * Last reply from: [publicradio](https://wordpress.org/support/users/publicradio/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-jsonparse-after-buying/#post-6423284)
 * Status: not resolved