{"id":13772659,"url":"https://github.com/vlzhr/pay-crypto-widget","last_synced_at":"2025-05-11T05:33:20.096Z","repository":{"id":115748968,"uuid":"268932348","full_name":"vlzhr/pay-crypto-widget","owner":"vlzhr","description":"JS widget for accepting crypto payments on your website","archived":false,"fork":false,"pushed_at":"2020-07-24T06:37:28.000Z","size":475,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-02-13T05:03:11.267Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vlzhr.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}},"created_at":"2020-06-02T23:47:23.000Z","updated_at":"2022-03-06T22:31:18.000Z","dependencies_parsed_at":"2023-07-04T22:01:17.751Z","dependency_job_id":null,"html_url":"https://github.com/vlzhr/pay-crypto-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlzhr%2Fpay-crypto-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlzhr%2Fpay-crypto-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlzhr%2Fpay-crypto-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlzhr%2Fpay-crypto-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vlzhr","download_url":"https://codeload.github.com/vlzhr/pay-crypto-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225017579,"owners_count":17407794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-08-03T17:01:06.692Z","updated_at":"2024-11-17T08:30:23.102Z","avatar_url":"https://github.com/vlzhr.png","language":"TypeScript","funding_links":[],"categories":["Frameworks and tools"],"sub_categories":["Client libraries"],"readme":"# Accept token payments on your website\n\n![](https://server.vlzhr.top/hosted/9446628-payment.gif)\n\nWaves Ecosystem is great for [issuing crypto assets](https://docs.waves.exchange/en/waves-exchange/waves-exchange-online-desktop/online-desktop-asset/online-desktop-token-creation). \nThis tool is designed to provide an easier functionality for purchases with tokens issued on Waves.\n\nUse this widget to accept crypto payments on your website. [Check the demo](https://vlzhr.github.io/pay-crypto-widget/example/)!\n\n## Get Started 🔥\n\n#### Instantly add widget to your HTML\n\n**1--** Connect [JS file](https://raw.githubusercontent.com/vlzhr/pay-crypto-widget/master/dist/paycrypto.js) to your website\n\n`\u003cscript src=\"paycrypto.js\"\u003e\u003c/script\u003e`\n\n**2--** Initialize and set up widget\n\n`dApp.widget.initWidget(\"\u003crecipient address or alias\u003e\", \"\u003casset id\u003e\");`\n\nfor example:\n\n`dApp.widget.initWidget(\"vlzhr\", \"WAVES\");`\n\n**3--** Call payment method when needed\n\n`dApp.widget.initPurchase(TOTALAMOUNT)`\n\nCheck the example full [source code](https://github.com/vlzhr/pay-crypto-widget/blob/master/example/index.html)!\n\n#### or use TypeScript module\n\nImport the [Pay Crypto module](https://github.com/vlzhr/pay-crypto-widget/blob/master/src/index.ts) and use  `Widget` class. \nYou will need to install Waves Signer and Waves Exchange Provider libraries for this:\n\n`npm i @waves/signer`\n\n`npm i @waves.exchange/provider-web`\n\n\n## Configuring widget ⚙\n\nYou can set following properties of a widget using `initWidget` method:\n\n`recipient: string, assetName?: string`\n\nYou can set following properties of a widget using `initPurchase` method:\n\n`invoiceValue: number,\n         paymentHandler?: Function,\n         errorHandler?: Function,\n         invoiceId?: string`\n\n## Call to action 🌱\n\nAs you may see, the widget has the functionality of MVP, as for now. \nTo make it more useful we need your feedback.\nWhat would you add to it?\nFor your recommendations there is a simple issue template. \n\n[Let us know your opinion](https://github.com/vlzhr/pay-crypto-widget/issues/new?assignees=\u0026labels=\u0026template=feature_request.md\u0026title=%5BFEEDBACK%5D) and let's build a great tool together 🚀\n\n## Contacts\n\n- follow me in Twitter: [@vlzhr](https://twitter.com/vlzhr)\n\n- join Waves Dev Commmunity [chat in Telegram](https://ttttt.me/waves_ride_dapps_dev)\n\n\nThank you for your interest!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlzhr%2Fpay-crypto-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvlzhr%2Fpay-crypto-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlzhr%2Fpay-crypto-widget/lists"}