{"id":15984310,"url":"https://github.com/molda/gopay-api-nodejs","last_synced_at":"2025-03-27T03:30:43.162Z","repository":{"id":57252483,"uuid":"55833185","full_name":"molda/gopay-api-nodejs","owner":"molda","description":"GoPay API for Node.js","archived":false,"fork":false,"pushed_at":"2017-12-29T17:39:21.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T15:59:29.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/molda.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":"2016-04-09T08:15:18.000Z","updated_at":"2025-02-28T11:33:36.000Z","dependencies_parsed_at":"2022-08-31T22:11:10.906Z","dependency_job_id":null,"html_url":"https://github.com/molda/gopay-api-nodejs","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/molda%2Fgopay-api-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molda%2Fgopay-api-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molda%2Fgopay-api-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molda%2Fgopay-api-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/molda","download_url":"https://codeload.github.com/molda/gopay-api-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245778339,"owners_count":20670682,"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-10-08T02:06:37.962Z","updated_at":"2025-03-27T03:30:42.838Z","avatar_url":"https://github.com/molda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gopay-api-nodejs\n\n### Usage\n```javascript\nvar GoPay = require('gopay');\n\nGoPay.init({\n\tclientID: 'xxxxxx'\n\tclientSecret: 'xxxxxxx'\n}/* , true  */); // true for production, since default is debug mode\n\n// default scope is 'payment-create'\nGoPay.getToken(/*scope, */function(err, token){\n\n\tvar payment = new Payment()\n\t\t.payer({contact: { email: 'test@test.cz' }})\n\t\t.target({\n\t\t\ttype:'ACCOUNT',\n\t\t\tgoid: gp.goid\n\t\t})\n\t\t.amount(1000)\n\t\t.currency(\"CZK\")\n\t\t.orderNo(\"001\")\n\t\t.orderDesc(\"pojisteni01\")\n\t\t.items([{ name:'item01', amount:1000 }])\n\t\t.preAuth(true)\n\t\t.additional_params([{\"name\":\"invoicenumber\", \"value\":\"2015001003\"}])\n\t\t.callback({\n\t\t\t\"return_url\":\"http://martin.smola/return\",\n\t\t\t// \"notification_url\":\"http://www.eshop.cz/notify\"\n\t\t})\n\t\t.toObj();\n\n\tGoPay.createPayment(payment, token, function(err, data){\n\n\t\tGoPay.getStatus(data.id, token, function(err, data){\n\t\t\t\n\t\t});\t\t\t\n\t});\t\n\n});\n```\n\nLicense: MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolda%2Fgopay-api-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmolda%2Fgopay-api-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolda%2Fgopay-api-nodejs/lists"}