{"id":15527258,"url":"https://github.com/recca0120/payum-ecpay","last_synced_at":"2025-04-23T12:16:47.666Z","repository":{"id":57036877,"uuid":"75879524","full_name":"recca0120/payum-ecpay","owner":"recca0120","description":"The Payum extension. 綠界金流","archived":false,"fork":false,"pushed_at":"2018-02-09T04:58:26.000Z","size":7015,"stargazers_count":13,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T12:16:24.240Z","etag":null,"topics":["ecpay","gateway","payum","payum-extension","php","taiwan"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/recca0120.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-12-07T22:03:44.000Z","updated_at":"2019-07-19T16:49:32.000Z","dependencies_parsed_at":"2022-08-24T06:40:27.888Z","dependency_job_id":null,"html_url":"https://github.com/recca0120/payum-ecpay","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ecpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ecpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ecpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ecpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/recca0120","download_url":"https://codeload.github.com/recca0120/payum-ecpay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250430600,"owners_count":21429324,"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":["ecpay","gateway","payum","payum-extension","php","taiwan"],"created_at":"2024-10-02T11:05:14.890Z","updated_at":"2025-04-23T12:16:47.630Z","avatar_url":"https://github.com/recca0120.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ecpay\n\n[![StyleCI](https://styleci.io/repos/75879524/shield?style=flat)](https://styleci.io/repos/75879524)\n[![Build Status](https://travis-ci.org/recca0120/payum-ecpay.svg)](https://travis-ci.org/recca0120/payum-ecpay)\n[![Total Downloads](https://poser.pugx.org/payum-tw/ecpay/d/total.svg)](https://packagist.org/packages/payum-tw/ecpay)\n[![Latest Stable Version](https://poser.pugx.org/payum-tw/ecpay/v/stable.svg)](https://packagist.org/packages/payum-tw/ecpay)\n[![Latest Unstable Version](https://poser.pugx.org/payum-tw/ecpay/v/unstable.svg)](https://packagist.org/packages/payum-tw/ecpay)\n[![License](https://poser.pugx.org/payum-tw/ecpay/license.svg)](https://packagist.org/packages/payum-tw/ecpay)\n[![Monthly Downloads](https://poser.pugx.org/payum-tw/ecpay/d/monthly)](https://packagist.org/packages/payum-tw/ecpay)\n[![Daily Downloads](https://poser.pugx.org/payum-tw/ecpay/d/daily)](https://packagist.org/packages/payum-tw/ecpay)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/recca0120/payum-ecpay/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/recca0120/payum-ecpay/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/recca0120/payum-ecpay/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/recca0120/payum-ecpay/?branch=master)\n\nThe Payum extension to rapidly build new extensions.\n\n1. Create new project\n\n```bash\n$ composer create-project payum-tw/ecpay\n```\n\n2. Replace all occurrences of `payum` with your vendor name. It may be your github name, for now let's say you choose: `ecpay`.\n3. Replace all occurrences of `ecpay` with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: `ecpay`.\n4. Register a gateway factory to the payum's builder and create a gateway:\n\n```php\n\u003c?php\n\nuse Payum\\Core\\PayumBuilder;\nuse Payum\\Core\\GatewayFactoryInterface;\n\n$defaultConfig = [];\n\n$payum = (new PayumBuilder)\n    -\u003eaddGatewayFactory('ecpay', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {\n        return new \\PayumTW\\Ecpay\\EcpayGatewayFactory($config, $coreGatewayFactory);\n    })\n\n    -\u003eaddGateway('ecpay', [\n        'factory'     =\u003e 'ecpay',\n        'MerchantID'  =\u003e '2000132',\n        'HashKey'     =\u003e '5294y06JbISpM5x9',\n        'HashIV'      =\u003e 'v77hoKGq4kWxNNIS',\n        'sandbox'     =\u003e true,\n    ])\n\n    -\u003egetPayum();\n```\n\n5. While using the gateway implement all method where you get `Not implemented` exception:\n\n```php\n\u003c?php\n\nuse Payum\\Core\\Request\\Capture;\n\n$ecpay = $payum-\u003egetGateway('ecpay');\n\n$model = new \\ArrayObject([\n  // ...\n]);\n\n$ecpay-\u003eexecute(new Capture($model));\n```\n\n## Resources\n\n* [Documentation](https://github.com/Payum/Payum/blob/master/src/Payum/Core/Resources/docs/index.md)\n* [Questions](http://stackoverflow.com/questions/tagged/payum)\n* [Issue Tracker](https://github.com/Payum/Payum/issues)\n* [Twitter](https://twitter.com/payumphp)\n\n## License\n\nSkeleton is released under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecca0120%2Fpayum-ecpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecca0120%2Fpayum-ecpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecca0120%2Fpayum-ecpay/lists"}