{"id":15527324,"url":"https://github.com/recca0120/payum-ips","last_synced_at":"2025-06-20T14:09:20.588Z","repository":{"id":57036898,"uuid":"67210412","full_name":"recca0120/payum-ips","owner":"recca0120","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-09T05:01:56.000Z","size":2471,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T12:31:36.910Z","etag":null,"topics":["ips","payum","payum-extension","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":"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-09-02T09:36:19.000Z","updated_at":"2018-06-08T11:12:41.000Z","dependencies_parsed_at":"2022-08-23T21:00:23.017Z","dependency_job_id":null,"html_url":"https://github.com/recca0120/payum-ips","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/recca0120/payum-ips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/recca0120","download_url":"https://codeload.github.com/recca0120/payum-ips/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Fpayum-ips/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260958957,"owners_count":23088808,"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":["ips","payum","payum-extension","php"],"created_at":"2024-10-02T11:05:29.533Z","updated_at":"2025-06-20T14:09:15.576Z","avatar_url":"https://github.com/recca0120.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ips\n\n[![StyleCI](https://styleci.io/repos/67210412/shield?style=flat)](https://styleci.io/repos/67210412)\n[![Build Status](https://travis-ci.org/recca0120/payum-ips.svg)](https://travis-ci.org/recca0120/payum-ips)\n[![Total Downloads](https://poser.pugx.org/payum-tw/ips/d/total.svg)](https://packagist.org/packages/payum-tw/ips)\n[![Latest Stable Version](https://poser.pugx.org/payum-tw/ips/v/stable.svg)](https://packagist.org/packages/payum-tw/ips)\n[![Latest Unstable Version](https://poser.pugx.org/payum-tw/ips/v/unstable.svg)](https://packagist.org/packages/payum-tw/ips)\n[![License](https://poser.pugx.org/payum-tw/ips/license.svg)](https://packagist.org/packages/payum-tw/ips)\n[![Monthly Downloads](https://poser.pugx.org/payum-tw/ips/d/monthly)](https://packagist.org/packages/payum-tw/ips)\n[![Daily Downloads](https://poser.pugx.org/payum-tw/ips/d/daily)](https://packagist.org/packages/payum-tw/ips)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/recca0120/payum-ips/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/recca0120/payum-ips/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/recca0120/payum-ips/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/recca0120/payum-ips/?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/ips\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: `acme`.\n3. Replace all occurrences of `ips` with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: `ips`.\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('ips', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {\n        return new \\PayumTW\\Allpay\\AllpayGatewayFactory($config, $coreGatewayFactory);\n    })\n\n    -\u003eaddGateway('ips', [\n        'factory' =\u003e 'ips',\n        'MerCode' =\u003e null,\n        'MerKey'  =\u003e null,\n        'MerName' =\u003e null,\n        'Account' =\u003e null,\n        'sandbox' =\u003e true,\n    ])\n\n    -\u003egetPayum()\n;\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$ips = $payum-\u003egetGateway('ips');\n\n$model = new \\ArrayObject([\n  // ...\n]);\n\n$ips-\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-ips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecca0120%2Fpayum-ips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecca0120%2Fpayum-ips/lists"}