Title: SyntaxError: Unexpected token
Last modified: August 31, 2016

---

# SyntaxError: Unexpected token

 *  Resolved [Muhammad Asfar](https://wordpress.org/support/users/muhammad-asfar/)
 * (@muhammad-asfar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/)
 * Please help, problem in paypal pro
    i am new in using this kind of api’s. Active
   the sandbox mode
 * After entering Card Number, Password and CVV,
    when i click on place order button
   it give this error **SyntaxError: Unexpected token <** on Check Out page.
 * how to solve this issue ??
 * [https://wordpress.org/plugins/paypal-for-woocommerce/](https://wordpress.org/plugins/paypal-for-woocommerce/)

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

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192304)
 * That typically means you have some sort of a plugin conflict causing a jQuery
   error of some sort. Can you try disabling other plugins to see if the issue goes
   away?
 *  Thread Starter [Muhammad Asfar](https://wordpress.org/support/users/muhammad-asfar/)
 * (@muhammad-asfar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192305)
 * thank you for your quick response.
 * just on firebug and got this msg in mozila firefox
 * **SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON
   data
    
   
    in console this is the error
 * **Unable to fix malformed JSON.**
 * solution as you suggest can work ?
 *  Thread Starter [Muhammad Asfar](https://wordpress.org/support/users/muhammad-asfar/)
 * (@muhammad-asfar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192309)
 * Just receive this email , is this your plugin email ?? and what does it mean?
 * Subject: PayPal Website Payments Pro (DoDirectPayment) Error Notification
 * DoDirectPayment call failed.
 * Error Code: 0
    Detailed Error Message: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:
   sslv3 alert handshake failure
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192313)
 * Yes, that came from our plugin. You are running into the POODLE issue. See this
   post for more details: [https://www.angelleye.com/paypal-ssl-error-poodle-vulnerability/](https://www.angelleye.com/paypal-ssl-error-poodle-vulnerability/)
 * Please review that and then let me know if you have any specific questions.
 *  Thread Starter [Muhammad Asfar](https://wordpress.org/support/users/muhammad-asfar/)
 * (@muhammad-asfar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192330)
 * do not know how to get rid of this problem.
    as i mentioned i am new.
 * just start ssl on local server, same error,
    so completely stuck in it and do
   not have any idea about it.
 *  Thread Starter [Muhammad Asfar](https://wordpress.org/support/users/muhammad-asfar/)
 * (@muhammad-asfar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192438)
 * in console with fire bug, i have this error.
 * **Unable to fix malformed JSON**
 * and when i Enable logging
    Log PayPal events inside /wp-content/uploads/wc-logs/
 * credit card type is missing.
 * cannot figure out what is the problem , so kindly tell me how to solve this error??
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192442)
 * The info at the link provided covers all of the details about your problem.
 * As it mentions, the best thing to do would be to contact your hosting provider
   and let them know you need your server software stack to match up with what that
   post outlines. Most importantly,
 * > If you want to use TLS 1.2 you’ll need to upgrade to OpenSSL 1.0.1 as a minimum,
   > and then you’ll be able to set CURLOPT_SSLVERSION to 6 (TLS 1.2).
   > If you want TLS 1.2 to be used automatically during SSL requests, you’ll also
   > need to upgrade to PHP 5.5.19+ (this is the ideal solution but many projects
   > are still on older PHP versions).
 *  Thread Starter [Muhammad Asfar](https://wordpress.org/support/users/muhammad-asfar/)
 * (@muhammad-asfar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192503)
 * Hi,
 * can you please check the problem and on this link
 * [http://www.certblaster.com/staging/product/a-plus-2015-practice-test-bundle-220-901-and-220-902/](http://www.certblaster.com/staging/product/a-plus-2015-practice-test-bundle-220-901-and-220-902/)
 * In the log file i have this information
 * 03-23-2016 @ 21:46:18 – Processing order #3306
    03-23-2016 @ 21:46:18 – Do payment
   request Array ( [DPFields] => Array ( [paymentaction] => Authorization [ipaddress]
   => 115.186.130.205 [returnfmfdetails] => )
 *  [CCDetails] => Array
    ( [creditcardtype] => [acct] => **** [expdate] => 42021[
   cvv2] => **** [startdate] => [issuenumber] => )
 *  [PayerInfo] => Array
    ( [email] => [devtest@gmail.com](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/devtest@gmail.com?output_format=md)[
   firstname] => Test [lastname] => test )
 *  [BillingAddress] => Array
    ( [street] => tester address [street2] => [city] 
   => test [state] => HR [countrycode] => IN [zip] => 134116 [phonenum] => 9646512322)
 *  [ShippingAddress] => Array
    ( [shiptoname] => Test test [shiptostreet] => tester
   address [shiptostreet2] => [shiptocity] => test [shiptostate] => HR [shiptozip]
   => 134116 [shiptocountry] => IN [shiptophonenum] => )
 *  [PaymentDetails] => Array
    ( [amt] => 477.00 [currencycode] => USD [insuranceamt]
   => [shipdiscamt] => 0.00 [handlingamt] => 0.00 [desc] => [custom] => [invnum]
   => 3306 [notifyurl] => [recurring] => [taxamt] => 0 [shippingamt] => 0 [itemamt]
   => 477.00 )
 *  [OrderItems] => Array
    ( [0] => Array ( [l_name] => CompTIA A Plus Practice 
   Test Bundle 220-901 and 220-902 [l_desc] => [l_amt] => 159 [l_number] => CB9012[
   l_qty] => 3 [l_taxamt] => [l_ebayitemnumber] => [l_ebayitemauctiontxnid] => [
   l_ebayitemorderid] => )
 *  )
 *  [Secure3D] => Array
    ( )
 * )
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192504)
 * I have already answered this question. I’m not sure how else to tell you how 
   to fix it. You need to follow the steps that I’ve previously provided.

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

The topic ‘SyntaxError: Unexpected token’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-for-woocommerce_dce4f5.svg)
 * [PayPal for WooCommerce](https://wordpress.org/plugins/paypal-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-for-woocommerce/reviews/)

## Tags

 * [SyntaxError: Unexpected token](https://wordpress.org/support/topic-tag/syntaxerror-unexpected-token/)

 * 9 replies
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-20/#post-7192504)
 * Status: resolved