{"id":22609035,"url":"https://github.com/bitfinexcom/dazaar-scatter-pay","last_synced_at":"2025-08-20T22:07:36.796Z","repository":{"id":141634145,"uuid":"215978881","full_name":"bitfinexcom/dazaar-scatter-pay","owner":"bitfinexcom","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-24T20:31:46.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-03T09:18:37.475Z","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-18T08:36:07.000Z","updated_at":"2021-05-19T04:51:50.000Z","dependencies_parsed_at":"2023-03-13T10:30:27.176Z","dependency_job_id":null,"html_url":"https://github.com/bitfinexcom/dazaar-scatter-pay","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-scatter-pay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fdazaar-scatter-pay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fdazaar-scatter-pay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfinexcom%2Fdazaar-scatter-pay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitfinexcom","download_url":"https://codeload.github.com/bitfinexcom/dazaar-scatter-pay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246112641,"owners_count":20725300,"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:41.260Z","updated_at":"2025-03-28T22:44:13.910Z","avatar_url":"https://github.com/bitfinexcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dazaar-scatter-pay\n\nPay for Dazaar feeds using Scatter\n\n```js\nconst DazaarPay = require('dazaar-scatter-pay')\n\n// pass in an array of dazaard card entries\nconst payments = [{ currency: 'EOS', payTo: 'dazaartest22' }]\nconst sellerKey = Buffer.from('dazaar-seller-key', 'hex')\n\nconst pay = new DazaarPay(payments, sellerKey)\n\nfor (const provider of pay.supported) {\n  console.log('Supports', provider.name)\n}\n\n// Will call out to Scatter to request the purchase\npay.supported[0].buy(buyerKey, '1.0000 EOS', function (err) {\n  console.log('bought for 1 EOS?', err)\n})\n```\n\n## API\n\n#### `pay = new DazaarScatterPay(payments, sellerKey)`\n\nMake a new instance.\n\n`payments` should be an array of payment objects, usually retrieved using a Dazaar card.\n`sellerKey` should be the Dazaar sellers key as a buffer.\n\n#### `pay.supported`\n\nA list of supported Payment objects corresponding to your payments input.\n\n#### `payment = pay.match(paymentEntry)`\n\nMatch a specific entry from your payments input to a provider. If not supported null is returned.\n\n#### `payment.buy(buyerKey, amount, cb)`\n\nPurchase Dazaar time for the given amount. `buyerKey` should be the buyer's key as a buffer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Fdazaar-scatter-pay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfinexcom%2Fdazaar-scatter-pay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfinexcom%2Fdazaar-scatter-pay/lists"}