Title: Issue After Entering Purchase Code – JS Syntax Error
Last modified: May 21, 2025

---

# Issue After Entering Purchase Code – JS Syntax Error

 *  [sanaullah khan](https://wordpress.org/support/users/sanaullahkhan81/)
 * (@sanaullahkhan81)
 * [1 year ago](https://wordpress.org/support/topic/issue-after-entering-purchase-code-js-syntax-error/)
 * After entering the purchase code, an error message appears at the bottom of the
   screen with a black background and red text:
 * `error js: syntax error unexpected token : <`
 * Could you please investigate this issue and advise? Requesting to open a support
   ticket for further resolution.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fissue-after-entering-purchase-code-js-syntax-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 year ago](https://wordpress.org/support/topic/issue-after-entering-purchase-code-js-syntax-error/#post-18477709)
 * Hi sanaullah khan,
 * Thank you for contacting us.
 * This type of JavaScript error often indicates a conflict with another plugin 
   or your active theme, or potentially an issue with a caching plugin.
 * To help us pinpoint the source of the problem, could you please try the following
   troubleshooting steps:
    1. **Deactivate all plugins** on your site **except for LearnPress.**
    2. **Switch your active WordPress theme** to a default theme like **Twenty Twenty-
       Five.**
 *  - **If the error is resolved** with only LearnPress active on a default theme,
      it suggests a conflict with another plugin or your previous theme. You can
      then reactivate your other plugins and theme one by one to identify the specific
      source of the conflict.
    - **If the error persists** even with this minimal setup, then the problem might
      lie within LearnPress itself. In that case, please let us know the results
      of your conflict test, and we will investigate further to provide you with
      a more specific solution.
 * Best regards,
   Brianvu-tp
 *  Thread Starter [sanaullah khan](https://wordpress.org/support/users/sanaullahkhan81/)
 * (@sanaullahkhan81)
 * [1 year ago](https://wordpress.org/support/topic/issue-after-entering-purchase-code-js-syntax-error/#post-18478125)
 * Thanks,
   After Deactivate all plugins purchase code worked.but now on the **LearnPress
   setting** -> **Payments** Tabs, cannot see **stripe **option which was activated
 * ![](https://i0.wp.com/lltuitions.co.uk/wp-content/uploads/2025/05/Screenshot-
   2025-05-22-093005.png)
 * ![](https://i0.wp.com/lltuitions.co.uk/wp-content/uploads/2025/05/Screenshot-
   2025-05-22-092839.png)
 *  Plugin Support [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 year ago](https://wordpress.org/support/topic/issue-after-entering-purchase-code-js-syntax-error/#post-18479716)
 * Hi sanaullah khan,
 * Thank you for the update!
 * Regarding the Stripe option missing under **LearnPress Settings -> Payments**
   after reactivating it, we’ve just re-tested this scenario with LearnPress version
   4.2.8.5, LearnPress – Stripe Payment add-on version 4.0.5, and the Twenty Twenty-
   Five default theme. We haven’t been able to reproduce the missing Stripe option
   on our end [https://prnt.sc/Q1q2sevGrc6-](https://prnt.sc/Q1q2sevGrc6-).
 * Could you please try **deactivating** the LearnPress – Stripe Payment add-on 
   again, and then **re-activating** it?
 * Sometimes simply toggling the add-on off and on can resolve minor display issues.
 * If the Stripe option still doesn’t appear after trying this, please let us know.
 * Best regards,
   Brianvu-tp

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

The topic ‘Issue After Entering Purchase Code – JS Syntax Error’ is closed to new
replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/issue-after-entering-purchase-code-js-syntax-error/#post-18479716)
 * Status: not resolved