Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T05:12:30.000Z (almost 7 years ago)
- Last Synced: 2024-10-09T11:24:55.855Z (2 months ago)
- Topics: 7-11, collection, gateway, payum, payum-extension, php, taiwan
- Language: PHP
- Homepage:
- Size: 3.06 MB
- Stars: 6
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Collect
[![StyleCI](https://styleci.io/repos/75824304/shield?style=flat)](https://styleci.io/repos/75824304)
[![Build Status](https://travis-ci.org/recca0120/payum-collect.svg)](https://travis-ci.org/recca0120/payum-collect)
[![Total Downloads](https://poser.pugx.org/payum-tw/collect/d/total.svg)](https://packagist.org/packages/payum-tw/collect)
[![Latest Stable Version](https://poser.pugx.org/payum-tw/collect/v/stable.svg)](https://packagist.org/packages/payum-tw/collect)
[![Latest Unstable Version](https://poser.pugx.org/payum-tw/collect/v/unstable.svg)](https://packagist.org/packages/payum-tw/collect)
[![License](https://poser.pugx.org/payum-tw/collect/license.svg)](https://packagist.org/packages/payum-tw/collect)
[![Monthly Downloads](https://poser.pugx.org/payum-tw/collect/d/monthly)](https://packagist.org/packages/payum-tw/collect)
[![Daily Downloads](https://poser.pugx.org/payum-tw/collect/d/daily)](https://packagist.org/packages/payum-tw/collect)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/recca0120/payum-collect/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/recca0120/payum-collect/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/recca0120/payum-collect/badges/coverage.png?b=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).