{"id":30111216,"url":"https://github.com/carlbarrdahl/reef-payment-api","last_synced_at":"2025-08-10T05:33:18.283Z","repository":{"id":45478162,"uuid":"421467473","full_name":"carlbarrdahl/reef-payment-api","owner":"carlbarrdahl","description":"🥇 Winner of Reef Payment API in DeFi \u0026 Cross-chain Interoperability Hackathon","archived":false,"fork":false,"pushed_at":"2021-12-18T16:04:24.000Z","size":2820,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T10:35:56.185Z","etag":null,"topics":["hackathon","ido","nextjs","payments","reef","web3"],"latest_commit_sha":null,"homepage":"https://reef-payment-api.web.app","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/carlbarrdahl.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-10-26T14:52:10.000Z","updated_at":"2023-08-19T03:51:19.000Z","dependencies_parsed_at":"2022-07-15T05:16:48.728Z","dependency_job_id":null,"html_url":"https://github.com/carlbarrdahl/reef-payment-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carlbarrdahl/reef-payment-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Freef-payment-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Freef-payment-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Freef-payment-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Freef-payment-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlbarrdahl","download_url":"https://codeload.github.com/carlbarrdahl/reef-payment-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlbarrdahl%2Freef-payment-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269681618,"owners_count":24458597,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hackathon","ido","nextjs","payments","reef","web3"],"created_at":"2025-08-10T05:31:04.875Z","updated_at":"2025-08-10T05:33:18.264Z","avatar_url":"https://github.com/carlbarrdahl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reef Payment API\n\nMerchant payment API gateway on a Firebase function.\n\nWorks like this:\n\n1. Merchant signs in with Google (can be extended to other providers)\n2. Merchant generates API key and configures wallet address\n3. Customer navigates to Merchant Shop and initiates a payment\n4. Payment API generates random wallet and returns address and checkoutUrl\n5. Customer navigates to checkoutUrl and sends payment to generated address\n6. Payment API transfers incoming payment (minus tx fee) to configured wallet address and returns a success message and navigates to redirectUrl\n7. Transactions to address is visible in Merchant Admin UI\n\n- Demo: https://reef-payment-api.web.app/\n- Merchant Shop Demo: https://reef-payment-api.web.app/shop\n- Video: https://www.loom.com/share/c1dae7c082c74de5bcf2fa849cc26958\n\n### Future improvements\n\n- Refund payments (this must be done in the browser with the merchant wallet signed in with polkadot ext.)\n- Admin UI to manage merchants\n\n### Screenshots\n\n#### Admin UI\n\n![](screenshot_admin.png)\n\n#### Merchant Shop\n\n![](screenshot_shop1.png)\n\n#### Checkout page\n\n![](screenshot_checkout.png)\n\n#### Created as a submission to DeFi \u0026 Cross-Chain Interoperability Hackathon\n\n- Link:\n  https://gitcoin.co/issue/reef-defi/reef-finance-bounties/1/100026837\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n#### Start the http api emulator\n\n```bash\ncd functions\nnpm run serve\n```\n\nAPI is now available at: http://localhost:5001/reef-payment-api/us-central1/api\n\n## Instructions\n\n- Go to http://localhost:3000 and sign in\n- Create API key\n- Enter wallet address\n- Go to http://localhost:3000/shop and initiate a payment\n- Copy the generated address and amount\n- Pay in browser with Polkadot extension\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlbarrdahl%2Freef-payment-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlbarrdahl%2Freef-payment-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlbarrdahl%2Freef-payment-api/lists"}