JSON Code Validating

Topic summary

A user is attempting to integrate a Mobicred installment payment widget into a Shopify Dawn theme but encounters a JSON validation error in the schema tag that prevents file updates.

Technical Issue:

  • The provided HTML/JavaScript code for the Mobicred widget contains formatting problems
  • The code appears corrupted or reversed in parts (text like ‘tpircs/<’ instead of ‘’)
  • Schema validation is failing, blocking the theme file from saving

Current Status:

  • Another user (Olllie) offered to help with a corrected code snippet
  • However, the suggested solution appears incomplete or improperly formatted in the thread
  • No confirmed resolution has been reached yet

The core problem involves properly formatting the widget initialization code to comply with Shopify’s JSON schema requirements for theme customization.

Summarized with AI on November 4. AI used: claude-sonnet-4-5-20250929.

Hello, I intend to add a Mobicred instalment widget on dawn theme using the HTML code below and the file cannot update due to invalid JSON in tag ‘schema’. Your help will be highly appreciated. Here’s the code:

Thank you.

Try this: