{"id":19039583,"url":"https://github.com/windwalker-io/pay2go","last_synced_at":"2025-04-23T20:48:31.560Z","repository":{"id":27958660,"uuid":"31451597","full_name":"windwalker-io/pay2go","owner":"windwalker-io","description":"PHP Pay2Go Bridge","archived":false,"fork":false,"pushed_at":"2015-12-03T05:54:46.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T10:52:39.689Z","etag":null,"topics":["pay2go","pay2go-php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/windwalker-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-28T05:00:54.000Z","updated_at":"2016-06-16T12:32:33.000Z","dependencies_parsed_at":"2022-08-01T08:49:15.329Z","dependency_job_id":null,"html_url":"https://github.com/windwalker-io/pay2go","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Fpay2go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Fpay2go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Fpay2go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/windwalker-io%2Fpay2go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/windwalker-io","download_url":"https://codeload.github.com/windwalker-io/pay2go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250513686,"owners_count":21443204,"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":["pay2go","pay2go-php"],"created_at":"2024-11-08T22:17:43.123Z","updated_at":"2025-04-23T20:48:31.509Z","avatar_url":"https://github.com/windwalker-io.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Pay2GO PHP Package\n\n開發中，還要一陣子才完成...\n\n## 使用範例\n\n``` php\n$pay2go = new \\Windwalker\\Pay2Go\\Pay2Go('MerchantID', 'key', 'iv');\n\n// Basic options\n$pay2go-\u003esetTest(true) // Use Test Platform\n\t-\u003esetMerchantOrderNo($orderNo)\n\t-\u003esetVersion('1.1')\n\t-\u003esetAmt((int) $price)\n\t-\u003esetRespondType(Pay2Go::RESPONSE_TYPE_STRING) // Use String response\n\t-\u003esetItemDesc($desc)\n\t-\u003esetEmail($email)\n\t-\u003esetLoginType(0)\n\t-\u003esetNotifyURL($notifyUrl)\n\t-\u003esetReturnURL($returnUrl)\n\t-\u003esetCustomerURL($customUrl);\n\n$pay2go-\u003eatm-\u003eenable();     // 啟用 ATM\n$pay2go-\u003ebarcode-\u003eenable(); // 啟用條碼\n$pay2go-\u003ecvs-\u003eenable();     // 啟用超商代碼\n$pay2go-\u003ewebATM-\u003eenable();  // 啟用 Web ATM\n\n// 啟用信用卡\n$pay2go-\u003ecreditCard-\u003eenable()\n\t-\u003esetUNIONPAY(1)\n\t-\u003einstallment('3, 6, 12');\n\n// 啟用支付寶\n$pay2go-\u003ealipay-\u003eenable()\n\t-\u003esetReceiver('Sakura')\n\t-\u003esetTel1('123-12312-123')\n\t-\u003esetTel2('123-123-123')\n\t-\u003esetCount(1)\n\t-\u003eaddProduct(\n\t\t$item-\u003eid,\n\t\t$item-\u003etitle,\n\t\t$desc,\n\t\t$item-\u003eprice,\n\t\t1\n\t);\n\n// 啟用財富通\n$pay2go-\u003etenpay-\u003eenable()\n\t-\u003esetReceiver('Flower')\n\t-\u003esetTel1('123-12312-123')\n\t-\u003esetTel2('123-123-123')\n\t-\u003esetCount(1)\n\t-\u003eaddProduct(\n\t\t$item-\u003eid,\n\t\t$item-\u003etitle,\n\t\t$desc,\n\t\t(int) $price,\n\t\t1\n\t);\n\n// 輸出成 \u003cform\u003e 直接 POST 即可繳費\necho $pay2go-\u003eredner(); // Render HTML Form\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwalker-io%2Fpay2go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindwalker-io%2Fpay2go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindwalker-io%2Fpay2go/lists"}