{"id":22608991,"url":"https://github.com/bitfinexcom/dazaar-payment","last_synced_at":"2025-04-11T06:18:54.544Z","repository":{"id":57106428,"uuid":"204724494","full_name":"bitfinexcom/dazaar-payment","owner":"bitfinexcom","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-20T20:21:46.000Z","size":35,"stargazers_count":6,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-29T15:06:31.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bitfinexcom.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":"2019-08-27T14:44:31.000Z","updated_at":"2022-12-25T03:56:37.000Z","dependencies_parsed_at":"2022-08-21T00:31:00.960Z","dependency_job_id":null,"html_url":"https://github.com/bitfinexcom/dazaar-payment","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/bitfinexcom%2Fdazaar-payment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fdazaar-payment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fdazaar-payment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fdazaar-payment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitfinexcom","download_url":"https://codeload.github.com/bitfinexcom/dazaar-payment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351639,"owners_count":21089317,"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-12-08T15:10:30.598Z","updated_at":"2025-04-11T06:18:54.509Z","avatar_url":"https://github.com/bitfinexcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dazaar/payment\n\nDazaar payment manager.\n\n```\nnpm install dazaar-payment\n```\n\nSupports EOS and free payments.\n\n## Usage\n\n``` js\nconst Payment = require('@dazaar/payment')\n\nconst pay = new Payment(seller, [{\n  // dazaar card payment entry\n  currency: 'EOS',\n  ...\n}])\n```\n\n## API\n\n#### `pay.validate(remoteKey, done)`\n\nValidate if a remote key can access a sellers stream.\nReturns an info object describing the state of the subscription.\n\n#### `pay.destroy()`\n\nDestroy the payment provider.\n\n#### `pay.metadata(buyerKey)`\n\nReturns a metadata string you should attach as the memo/userdata when\ndoing a payment yourself.\n\n#### `pay.providers`\n\nAn array of payment providers, each corresponding to the payment entry passed in the constructor.\nIf the payment was not support it might contain null.\n\n#### `provider.buy(buyerKey, amount, authentication, cb)`\n\nConvenience method to buy access to a stream using the provider.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Fdazaar-payment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfinexcom%2Fdazaar-payment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Fdazaar-payment/lists"}