{"id":28932343,"url":"https://github.com/juspay/blaze-sdk-web","last_synced_at":"2026-01-20T16:25:10.167Z","repository":{"id":238284699,"uuid":"796235807","full_name":"juspay/blaze-sdk-web","owner":"juspay","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-22T17:40:06.000Z","size":203,"stargazers_count":0,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"release","last_synced_at":"2025-10-05T13:02:57.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juspay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-05T10:59:53.000Z","updated_at":"2025-09-22T17:40:04.000Z","dependencies_parsed_at":"2024-09-02T14:18:09.884Z","dependency_job_id":"42e38a51-1d21-4b24-87fa-42b3d3a9a07c","html_url":"https://github.com/juspay/blaze-sdk-web","commit_stats":null,"previous_names":["juspay/zephyr-sdk-web","juspay/blaze-sdk-web"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/juspay/blaze-sdk-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fblaze-sdk-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fblaze-sdk-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fblaze-sdk-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fblaze-sdk-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juspay","download_url":"https://codeload.github.com/juspay/blaze-sdk-web/tar.gz/refs/heads/release","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fblaze-sdk-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-22T16:41:43.543Z","updated_at":"2026-01-20T16:25:10.162Z","avatar_url":"https://github.com/juspay.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blaze SDK Web\n\nBlaze SDK Web is a Javascript library which enables you to seamlessly integrate and use [Breeze 1 Click Checkout](https://breeze.in/) in your Web app built using any kind of web technology.\n\n## Web SDK Integration\n\nFollow the below steps to integrate Blaze SDK into your web app written in any framework.\n\n### Step 1: Obtaining the Blaze SDK\n\nRun following command in your node project to install the Blaze SDK Web package:\n\n```sh\nnpm install @juspay/blaze-sdk-web\n```\n\nThis will install the Blaze SDK Web package in your project.\n\n_Note: You can use pnpm, yarn or any other package manager of your choice to install the package._\n\n### Step 2: Initialize the SDK\n\n#### 2.2.1: Import the SDK\n\nImport BlazeSDK using the following code in TS/JS project:\n\n```javascript\nimport BlazeSDK from '@juspay/blaze-sdk-web';\n```\n\n#### 2.2.1: Construct the Initiate Payload\n\nCreate a Json with correct parameters to initiate the SDK. This is the data that will be used to initialize the SDK.\n\n```javascript\n  const initiatePayload = {\n    merchantId: '\u003cmerchant-id-shared-by-breeze\u003e',\n    shopUrl: '\u003cshop-url\u003e',\n    environment: 'production'\n  };\n\n  const initSDKPayload = {\n    requestId: '\u003cunique_request_id\u003e',\n    service: 'in.breeze.onecco',\n    payload: initiatePayload\n  }\n```\n\n#### 2.2.2: Construct the Callback Method\n\nCreate a callback method to handle the response from the SDK. This method will be called when the SDK has processed the request.\n\n```javascript\n// response will be an json object\nconst callbackMethod = (response\u003e) =\u003e {\n  console.log('Response from SDK:', response);\n};\n```\n\n#### 2.2.3: Call the initiate method on Blaze\n\nCall the `initiate` method on Blaze SDK with the initiate payload and the callback method.\n\n```javascript\nBlazeSDK.initiate(initSDKPayload, callbackMethod);\n```\n\n### Step 3: Start processing your requests\n\nOnce the SDK is initiated, you can start processing your requests using the initialized instance of the SDK.\nThe SDK will call the callback method with the result of the SDK operation.\n\n#### 3.1: Construct the Process Payload\n\nCreate a Json payload with the required parameters to process the request.\nThe process payload differs based on the request.\nRefer to schemas sections to understand what kind of data is required for different requests\n\n```javascript\n// 3.1 Create SDK Process Payload\n// Create a JSONObject for the Process data\nlet processPayload = {\n  \"action\": \"\u003cACTION\u003e\",\n  // and more parameters required as per the action\n};\n\n\n// Place Process Payload into SDK Payload\nlet processSDKPayload = {\n  requestId: '\u003cunique_request_id\u003e',\n  service: 'in.breeze.onecco',\n  \"payload\": processPayload\n};\n```\n\n#### 3.2: Call the process method on Blaze Instance\n\nCall the process method on the Blaze instance with the process payload to start the user journey or a headless flow.\n\n```javascript\nBlazeSDK.process(processSDKPayload)\n```\n\n## Backend SDK Integration\n\nFor server-side integration using Node.js, please refer to the [Backend SDK Documentation](./BACKEND_README.md).\n\nThe Backend SDK is designed for server-to-server communication and includes features like:\n- Secure authentication with auth tokens\n- Server-side payment initiation\n- Direct API communication with Breeze platform\n\n[View Backend SDK Documentation →](./BACKEND_README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fblaze-sdk-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuspay%2Fblaze-sdk-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fblaze-sdk-web/lists"}