{"id":44384659,"url":"https://github.com/utrustdev/xmoney-crypto-ts-library","last_synced_at":"2026-02-12T00:36:44.330Z","repository":{"id":39732354,"uuid":"313259370","full_name":"utrustdev/xmoney-crypto-ts-library","owner":"utrustdev","description":"xMoney Crypto typescript library","archived":false,"fork":false,"pushed_at":"2024-10-03T14:14:09.000Z","size":397,"stargazers_count":6,"open_issues_count":12,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-09-20T10:36:47.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utrustdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-16T10:02:48.000Z","updated_at":"2025-08-25T16:55:36.000Z","dependencies_parsed_at":"2024-10-24T16:43:37.576Z","dependency_job_id":"8fb0200d-373b-45d8-9bb8-1d5759d92675","html_url":"https://github.com/utrustdev/xmoney-crypto-ts-library","commit_stats":{"total_commits":18,"total_committers":5,"mean_commits":3.6,"dds":0.5,"last_synced_commit":"e1ceeaa6f277412a370ee9390620cb22ddfacc6c"},"previous_names":["utrustdev/xmoney-crypto-ts-library"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/utrustdev/xmoney-crypto-ts-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utrustdev%2Fxmoney-crypto-ts-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utrustdev%2Fxmoney-crypto-ts-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utrustdev%2Fxmoney-crypto-ts-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utrustdev%2Fxmoney-crypto-ts-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utrustdev","download_url":"https://codeload.github.com/utrustdev/xmoney-crypto-ts-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utrustdev%2Fxmoney-crypto-ts-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29351055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-02-12T00:36:41.937Z","updated_at":"2026-02-12T00:36:44.321Z","avatar_url":"https://github.com/utrustdev.png","language":"TypeScript","readme":"# xMoney Crypto typescript library\n\nThe official Typescript library for the [xMoney Crypto API](https://docs.crypto.xmoney.com/).\n\n## Minimum Requirements\n\n- nodejs (minimum: 12)\n- npm\n\n## Install\n\n```\nnpm install @utrustdev/utrust-ts-library\n```\n\nor\n\n```\nyarn add @utrustdev/utrust-ts-library\n```\n\n## Usage\n\n### API Client\n\n#### Creating a new Order:\n\n```\nimport {ApiClient} from '@utrustdev/utrust-ts-library';\n\nconst {createOrder} = ApiClient(\u003cAPI_KEY\u003e, \u003cENVIRONMENT\u003e)\n```\n\nAs environment you can either use `production` or `sandbox`. It defaults to `production` if nothing is passed.\n\nThen you can just create a new order passing an `order` and `customer` object as specified in the docs, which will return you a promise with the following structure:\n\n```\nconst {status, data, errors} = await createOrder(order, customer);\n```\n\nWhere you can get:\n\n- `status`: response status;\n- `data`: which should contain `{redirectUrl, uuid}` in case of success;\n- `errors`: in case something goes wrong\n\n#### Getting Order's Data\n\n```\nimport {ApiClient} from '@utrustdev/utrust-ts-library';\n\nconst {getOrder} = ApiClient(\u003cAPI_KEY\u003e, \u003cENVIRONMENT\u003e)\n```\n\nAgain, as environment you can either use `production` or `sandbox`. It defaults to `production` if nothing is passed.\n\n```\nconst {status, data, errors} = await getOrder(uuid)\n```\n\nUsing the order `uuid` that you could grab on order creation, you can later use it for fetching that specific order. This can be useful for checking order `status` if you don't build a webhook integration.\nOther useful returned data includes:\n\n- `created_at`\n- `items`\n- `pricing_details`\n- `reference`\n- `settlement_amount` - in merchant settlement currency\n- `total_amount` - in original store currency\n- `id` - order uuid\n- `status`\n\nA complete example of this payload can be found in the tests/API documentation\n\n### Webhook Validator\n\nThe Webhook validator module can be used to verify an incoming event via Webhook.\nFor easy reausability you can just initiate your `WebhookValidator` with your `WEBHOOK_SECRET` (which you can retrieve on your Merchants Dashboard/Integrations), and then just call `validateSignature` with your webhook's `payload`\nIt simply returns:\n\n- `true` - in case provided payload can be verified by provided `webhookSecret`;\n- `false` - otherwise;\n\nExample:\n\n```\nimport {WebhookValidator} from '@utrustdev/utrust-ts-library';\n\nconst {validateSignature} = WebhookValidator(\u003cWEBHOOK_SECRET\u003e);\n\n\nconst isValid = await validateSignature(payload)\n```\n\n## Contribute\n\nThis library was written and is maintained by the Utrust development team.\nWe have now opened it to the world so that the community using this library may have the chance of shaping its development.\n\nYou can contribute by simply letting us know your suggestions or any problems that you find [by opening an issue on GitHub](https://github.com/utrustdev/utrust-ts-library/issues/new).\n\nYou can also fork the repository on GitHub and open a pull request for the `master` branch with your missing features and/or bug fixes.\nPlease make sure the new code follows the same style and conventions as already written code.\nOur team is eager to welcome new contributors into the mix :blush:.\n\n### Tests\n\nWhen contributing with new changes, please make an effort to provide the respective tests.\nThis is especially important when fixing any problems, as it will prevent other contributors\nfrom accidentally reintroducing the issue in the future.\n\nBefore submitting a pull request with your changes, please make sure every test passes:\n\n```\nnpm run test\n```\n\n### Lint\n\nBefore contributing your changes, make sure it passes on the linter:\n\n```\nnpm run lint\n```\n\n## License\n\nxMoney Crypto utrust-ts-library is maintained with :purple_heart: by the xMoney development team,\nand is available to the public under the GNU GPLv3 license.\nPlease see [LICENSE](https://github.com/utrustdev/utrust-ts-library/blob/master/LICENSE) for further details.\n\n\u0026copy; Utrust 2024\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futrustdev%2Fxmoney-crypto-ts-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futrustdev%2Fxmoney-crypto-ts-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futrustdev%2Fxmoney-crypto-ts-library/lists"}