{"id":24790671,"url":"https://github.com/jonoise/sinpe-react","last_synced_at":"2026-05-04T22:32:24.041Z","repository":{"id":46771039,"uuid":"409756044","full_name":"jonoise/sinpe-react","owner":"jonoise","description":"React wrapper around the Sinpe Móvil workflow to send money via sms.","archived":false,"fork":false,"pushed_at":"2021-10-11T02:17:59.000Z","size":4030,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T00:08:45.501Z","etag":null,"topics":["react","reactjs","sinpe"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sinpe-react","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonoise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-23T22:04:37.000Z","updated_at":"2023-03-07T14:47:30.000Z","dependencies_parsed_at":"2022-09-02T11:01:00.031Z","dependency_job_id":null,"html_url":"https://github.com/jonoise/sinpe-react","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jonoise/sinpe-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fsinpe-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fsinpe-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fsinpe-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fsinpe-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonoise","download_url":"https://codeload.github.com/jonoise/sinpe-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonoise%2Fsinpe-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32628205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["react","reactjs","sinpe"],"created_at":"2025-01-29T18:17:23.768Z","updated_at":"2026-05-04T22:32:24.027Z","avatar_url":"https://github.com/jonoise.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### 🚨 This package lacks TESTS\n\n#### 🙏 Collaborations are highly appreaciated. Feel free to fork and submit PR's ♥.\n\n⚠🚨 This tools IS in DEVELOPMENT ⚠🚨\n\n```bash\nThis tools is NOT suitable for production.\n```\n\n# Sinpe React Component\n\n![Banner image with Sinpe-React Logo](https://user-images.githubusercontent.com/71573508/136670885-0fe00e99-8dea-4328-883b-e86ee1771053.jpg)\n\n## What is Sinpe React?\n\nSinpe-React is a React wrapper around the SINPE Móvil flow to send money via sms. It's just an automation that provide a basic API.\n\n## Docs.\n\nPara una versión en español y más detallada ve a [**la documentación**](https://soloamilkar.github.io/sinpe-react).\n\n## Features\n\n- Send money via sms using Sinpe Móvil (Costa Rica only).\n- Connect to your backend or CMS.\n- User friendly.\n- Styling highly customizable.\n- Written in Typecript.\n\n## Quickstart\n\n```bash\nnpm i sinpe-react\n--OR\nyarn add sinpe-react\n```\n\n```js\nimport React from 'react';\nimport SinpeReact from 'sinpe-react';\nimport \"sinpe-react/dist/sinpe-react.cjs.development.css\"\n\nfunction App() {\n  const order={\"...\"}\n  const myNumber={\"...\"}\n  return (\n   \u003cSinpeReact\n    vendorPhoneNumber={myNumber}\n    order={order}\n   /\u003e\n  );\n}\n```\n\n## Using NextJS.\n\nIf using NextJS import styles in \\_app.js file.\n\n```js\n// _app.js\nimport '../styles/globals.css'\nimport type { AppProps } from 'next/app'\n\n// add this\nimport 'sinpe-react/dist/sinpe-react.cjs.development.css'\n\nfunction MyApp({ Component, pageProps }: AppProps) {\n  return \u003cComponent {...pageProps} /\u003e\n}\nexport default MyApp\n```\n\n## Custom Styling.\n\nYou can add custom styling to both button and modal components using `btnClass` and `modalClass` respectively as props of SinpeReact component.\n\n```js\nimport React from 'react';\nimport SinpeReact from 'sinpe-react';\nimport \"sinpe-react/dist/sinpe-react.cjs.development.css\"\n\nfunction App() {\n  const vendorOptions={\"...\"}\n  const customerOptions={\"...\"}\n\n  const styles = {\n    modalClass: \"myModalClass\",\n    btnClass: \"myBtnClass\"\n  }\n\n  return (\n   \u003cSinpeReact\n    vendorOptions={vendorOptions}\n    customerOptions={customerOptions}\n    styles={styles}\n   /\u003e\n  );\n}\n```\n\n## API\n\n| Props             | Type     | Required | Description                                                          |\n| ----------------- | -------- | -------- | -------------------------------------------------------------------- |\n| vendorPhoneNumber | string   | ✔        | The number that receives the transfer.                               |\n| order             | object   | ✔        | Options related to your customer.                                    |\n| callbackFunction  | function |          | Fires after customer confirm order receipt number.                   |\n| redirectUrl       | string   |          | Url you want to redirect the user after the purchase, eg: /thankyou. |\n| styles            | object   |          | Custom stylings classes.                                             |\n\n## Troubleshooting\n\n### Typing error from env variable -\u003e conf: {{api_key: process.env.SINPE_API_KEY}}\n\nWhen getting an Environment Variable you need to specify the type of value that variable is.\n\n```js\ndeclare var process: {\n  env: {\n    SINPE_API_KEY: string\n  }\n}\n\n// and call the conf\nconf={api_key:process.env.SINPE_API_KEY}\n\u003cSinpeReact conf={conf} /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonoise%2Fsinpe-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonoise%2Fsinpe-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonoise%2Fsinpe-react/lists"}