https://github.com/recca0120/payum-collect
The Payum extension. 統一客樂得黑貓宅急便金流
https://github.com/recca0120/payum-collect
7-11 collection gateway payum payum-extension php taiwan
Last synced: 6 months ago
JSON representation
The Payum extension. 統一客樂得黑貓宅急便金流
- Host: GitHub
- URL: https://github.com/recca0120/payum-collect
- Owner: recca0120
- License: mit
- Created: 2016-12-07T10:16:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T05:12:30.000Z (over 7 years ago)
- Last Synced: 2025-03-29T23:32:10.197Z (7 months ago)
- Topics: 7-11, collection, gateway, payum, payum-extension, php, taiwan
- Language: PHP
- Homepage:
- Size: 3.06 MB
- Stars: 6
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Collect
[](https://styleci.io/repos/75824304)
[](https://travis-ci.org/recca0120/payum-collect)
[](https://packagist.org/packages/payum-tw/collect)
[](https://packagist.org/packages/payum-tw/collect)
[](https://packagist.org/packages/payum-tw/collect)
[](https://packagist.org/packages/payum-tw/collect)
[](https://packagist.org/packages/payum-tw/collect)
[](https://packagist.org/packages/payum-tw/collect)
[](https://scrutinizer-ci.com/g/recca0120/payum-collect/?branch=master)
[](https://scrutinizer-ci.com/g/recca0120/payum-collect/?branch=master)The Payum extension to rapidly build new extensions.
1. Create new project
```bash
$ composer create-project payum-tw/collect
```2. Replace all occurrences of `payum` with your vendor name. It may be your github name, for now let's say you choose: `collect`.
3. Replace all occurrences of `collect` with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: `collect`.
4. Register a gateway factory to the payum's builder and create a gateway:```php
addGatewayFactory('collect', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
return new \PayumTW\Collect\CollectGatewayFactory($config, $coreGatewayFactory);
})->addGateway('collect', [
'factory' => 'collect',
'link_id' => null,
'hash_base' => null,
])->getPayum();
```5. While using the gateway implement all method where you get `Not implemented` exception:
```php
getGateway('collect');$model = new \ArrayObject([
// ...
]);$collect->execute(new Capture($model));
```## Resources
* [Documentation](https://github.com/Payum/Payum/blob/master/src/Payum/Core/Resources/docs/index.md)
* [Questions](http://stackoverflow.com/questions/tagged/payum)
* [Issue Tracker](https://github.com/Payum/Payum/issues)
* [Twitter](https://twitter.com/payumphp)## License
Skeleton is released under the [MIT License](LICENSE).