{"id":21878272,"url":"https://github.com/pepabo/gmopg","last_synced_at":"2025-08-10T11:08:48.653Z","repository":{"id":46664414,"uuid":"105639638","full_name":"pepabo/gmopg","owner":"pepabo","description":" :credit_card: Simple Nodejs wrapper for GMO Payment Gateway API.","archived":false,"fork":false,"pushed_at":"2022-12-26T09:32:06.000Z","size":314,"stargazers_count":36,"open_issues_count":1,"forks_count":21,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-08-09T07:17:47.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.gmo-pg.com/","language":"TypeScript","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/pepabo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-03T10:33:22.000Z","updated_at":"2025-03-30T16:37:40.000Z","dependencies_parsed_at":"2023-01-30T23:45:56.091Z","dependency_job_id":null,"html_url":"https://github.com/pepabo/gmopg","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pepabo/gmopg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fgmopg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fgmopg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fgmopg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fgmopg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepabo","download_url":"https://codeload.github.com/pepabo/gmopg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fgmopg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713884,"owners_count":24463244,"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":[],"created_at":"2024-11-28T08:12:08.972Z","updated_at":"2025-08-10T11:08:48.623Z","avatar_url":"https://github.com/pepabo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"GMO Payment Gateway API Client: Unofficial\n==========================================\n\nSimple Nodejs wrapper for [GMO Payment Gateway][gmopg] API.\n\n\u003ca href=\"https://www.npmjs.com/package/gmopg\" title=\"npm\"\u003e\u003cimg src=\"http://img.shields.io/npm/v/gmopg.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/pepabo/gmopg/actions\" title=\"actions\"\u003e\u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/pepabo/gmopg/build.yml?branch=main\u0026label=Test\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/pepabo/gmopg\" title=\"codecov.io\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/gh/pepabo/gmopg.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/pepabo/gmopg/blob/main/MIT-LICENSE\" title=\"MIT License\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n\n[gmopg]: https://www.gmo-pg.com/\n\nInstallation\n------------\n\n```sh\n$ npm install gmopg\n```\n\nUsage\n-----\n\nPurchase example\n\n### Node.js\n\n```js\nconst {default: GMOPG, ENUMS} = require('gmopg');\n\nconst gmopg = new GMOPG({\n  baseUrl: 'https://p01.mul-pay.jp',\n  SiteID: 'Your SiteID',\n  SitePass: 'Your SitePass',\n  ShopID: 'Your ShopID',\n  ShopPass: 'Your SitePass',\n})\n\nconst orderID = 'Order ID'\nconst amount  = 1234\n\ngmopg.entryTran({\n  OrderID: orderID,\n  JobCd: ENUMS.JobCd.Auth,\n  Amount: amount\n}).then((entryRes) =\u003e {\n  gmopg.execTran({\n    AccessID: entryRes.AccessID,\n    AccessPass: entryRes.AccessPass,\n    OrderID: orderID,\n    Method: ENUMS.Method.Lump,\n    CardNo: '1234123412341234',\n    Expire: '2024',\n    SecurityCode: '123'\n  }).then((execRes) =\u003e {\n    gmopg.alterTran({\n      AccessID: entryRes.AccessID,\n      AccessPass: entryRes.AccessPass,\n      JobCd: ENUMS.JobCd.Sales,\n      Amount: amount\n    }).then((alterRes) =\u003e {\n      console.log(alterRes)\n    })\n  })\n})\n```\n\n### TypeScript\n\n```ts\nimport GMOPG, {ENUMS} from 'gmopg'\n\nconst gmopg = new GMOPG({\n  baseUrl: 'https://p01.mul-pay.jp',\n  SiteID: 'Your SiteID',\n  SitePass: 'Your SitePass',\n  ShopID: 'Your ShopID',\n  ShopPass: 'Your ShopPass'\n})\n\nconst orderID = 'Order ID'\nconst amount = 1234\n\nconst entryRes = await gmopg.entryTran({\n  OrderID: orderID,\n  JobCd: ENUMS.JobCd.Auth,\n  Amount: amount\n})\n\nconst execRes = await gmopg.execTran({\n  AccessID: entryRes.AccessID,\n  AccessPass: entryRes.AccessPass,\n  OrderID: orderID,\n  Method: ENUMS.Method.Lump,\n  CardNo: '1234123412341234',\n  Expire: '2024',\n  SecurityCode: '123'\n})\n\nconst alterRes = await gmopg.alterTran({\n  AccessID: entryRes.AccessID,\n  AccessPass: entryRes.AccessPass,\n  JobCd: ENUMS.JobCd.Sales,\n  Amount: amount\n})\n```\n\nConfig\n------\n\nname         | description         | environ        | default\n---          | ---                 | ---            | ---\nbaseUrl      | baseurl for request | GMOPG_ENDPOINT | https://pt01.mul-pay.jp\nhttp.timeout | timeout for request | GMOPG_TIMEOUT  | 180000 (ms)\nhttp.headers | headers for request | -              | see code :eyes:\nSiteID       | PG site id          | GMOPG_SITEID   | undefined\nSitePass     | PG site pass        | GMOPG_SITEPASS | undefined\nShopID       | PG shop id          | GMOPG_SHOPID   | undefined\nShopPass     | PG shop pass        | GMOPG_SHOPPASS | undefined\n\nContribution\n------------\n\n1. Fork (https://github.com/pepabo/gmopg/fork)\n1. Create a feature branch\n1. Commit your changes\n1. Rebase your local changes against the main branch\n1. Run test suite with the `npm ci` command and confirm that it passes\n1. Create a new Pull Request\n\nAuthor\n------\n\n[linyows](https://github.com/linyows)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fgmopg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepabo%2Fgmopg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fgmopg/lists"}