{"id":31545486,"url":"https://github.com/dhcertainty/paynowqr","last_synced_at":"2025-10-04T14:49:34.400Z","repository":{"id":57321054,"uuid":"263538695","full_name":"DHCertainty/PaynowQR","owner":"DHCertainty","description":"Singapore Paynow QR generator for node.js and javascript","archived":false,"fork":false,"pushed_at":"2024-12-10T04:26:47.000Z","size":5089,"stargazers_count":72,"open_issues_count":1,"forks_count":24,"subscribers_count":4,"default_branch":"production","last_synced_at":"2025-09-28T01:43:01.911Z","etag":null,"topics":["payments","paynow","qrcode","sgpay","sgqr","singapore"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DHCertainty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-05-13T05:57:30.000Z","updated_at":"2025-09-27T11:16:24.000Z","dependencies_parsed_at":"2024-12-10T05:37:29.605Z","dependency_job_id":null,"html_url":"https://github.com/DHCertainty/PaynowQR","commit_stats":null,"previous_names":["dhcertainty/paynowqr"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/DHCertainty/PaynowQR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHCertainty%2FPaynowQR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHCertainty%2FPaynowQR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHCertainty%2FPaynowQR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHCertainty%2FPaynowQR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DHCertainty","download_url":"https://codeload.github.com/DHCertainty/PaynowQR/tar.gz/refs/heads/production","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHCertainty%2FPaynowQR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278328162,"owners_count":25968899,"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-10-04T02:00:05.491Z","response_time":63,"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":["payments","paynow","qrcode","sgpay","sgqr","singapore"],"created_at":"2025-10-04T14:49:33.273Z","updated_at":"2025-10-04T14:49:34.377Z","avatar_url":"https://github.com/DHCertainty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PaynowQR\nSingapore Paynow QR generator for node.js and javascript. Works on both browser and nodejs. \n\nHave any questions or need help to do a custom implementation?\n\nFeel free to drop us an email at partnerships@dhcertainty.com.\n\n### Demo\n\u003e See it in action here:\n\u003e https://code.thunderquote.com/PaynowQR/\n\n\n\n## Usage Instructions\n\n**On nodejs**\n\nInstall via npm\n```\n$ npm i paynowqr\n```\n\nIn your code, include the following:\n\n```javascript\nconst PaynowQR = require('paynowqr');\n```\n\n**Browser**\n\nYou can use the CDN link provided by unpkg:\n\n```html\n\u003cscript src=\"https://unpkg.com/paynowqr@latest/dist/paynowqr.min.js\"\u003e\u003c/script\u003e\n```\n\n\n\n*Example usage:*\n\n```javascript\n//Create a PaynowQR object\nlet qrcode = new PaynowQR({\n    uen:'201403121W',           //Required: UEN of company\n    amount : 500,               //Specify amount of money to pay.\n    editable: true,             //Whether or not to allow editing of payment amount. Defaults to false if amount is specified\n    expiry: '20201231',         //Set an expiry date for the Paynow QR code (YYYYMMDD). If omitted, defaults to 5 years from current time.\n    refNumber: 'TQINV-10001',   //Reference number for Paynow Transaction. Useful if you need to track payments for recouncilation.\n    company:  'ACME Pte Ltd.'   //Company name to embed in the QR code. Optional.               \n  });\n  \n  //Outputs the qrcode to a UTF-8 string format, which can be passed to a QR code generation script to generate the paynow QR\n  let QRstring = qrcode.output();\n```\n\n\n## Potential usecases:\n\nDynamically generating payment QR codes on e-commerce or donation pages that allow tracking of payments via reference codes.\n\nCan be used in conjunction with Bank APIs to detect resolved payments.\n\nIntegration with Xero Invoicing -  see: https://github.com/ThunderQuoteTeam/XeroPayNowQR\n\n\n\n## To do\n\nIncorporate QR generation into the PaynowQR class with logo / branding options\n\n\n\n## Credits\n\nOriginal code referenced from:\nhttps://gist.github.com/chengkiang/7e1c4899768245570cc49c7d23bc394c\n\nSee also:\n\nhttps://github.com/jtaych/PayNow-QR-Javascript\n\nhttps://github.com/mindmedia/paynow.py\n\nDeveloped by DH Certainty (https://dhcertainty.org)\n\nWas looking around for various ways to implement dynamic SGQR codes for payment over Javascript, however couldn't find any that worked with UEN based payments.\n\nFeel free to report any issues and feature requests!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhcertainty%2Fpaynowqr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhcertainty%2Fpaynowqr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhcertainty%2Fpaynowqr/lists"}