Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/recca0120/payum-ezship
https://github.com/recca0120/payum-ezship
ezship gateway payum payum-extension php taiwan
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/recca0120/payum-ezship
- Owner: recca0120
- License: mit
- Created: 2017-01-07T16:07:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T05:07:56.000Z (almost 7 years ago)
- Last Synced: 2024-10-20T08:06:06.542Z (2 months ago)
- Topics: ezship, gateway, payum, payum-extension, php, taiwan
- Language: PHP
- Size: 397 KB
- Stars: 3
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ezShip
[![StyleCI](https://styleci.io/repos/78288815/shield?style=flat)](https://styleci.io/repos/78288815)
[![Build Status](https://travis-ci.org/recca0120/payum-ezship.svg)](https://travis-ci.org/recca0120/payum-ezship)
[![Total Downloads](https://poser.pugx.org/payum-tw/ezship/d/total.svg)](https://packagist.org/packages/payum-tw/ezship)
[![Latest Stable Version](https://poser.pugx.org/payum-tw/ezship/v/stable.svg)](https://packagist.org/packages/payum-tw/ezship)
[![Latest Unstable Version](https://poser.pugx.org/payum-tw/ezship/v/unstable.svg)](https://packagist.org/packages/payum-tw/ezship)
[![License](https://poser.pugx.org/payum-tw/ezship/license.svg)](https://packagist.org/packages/payum-tw/ezship)
[![Monthly Downloads](https://poser.pugx.org/payum-tw/ezship/d/monthly)](https://packagist.org/packages/payum-tw/ezship)
[![Daily Downloads](https://poser.pugx.org/payum-tw/ezship/d/daily)](https://packagist.org/packages/payum-tw/ezship)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/recca0120/payum-ezship/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/recca0120/payum-ezship/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/recca0120/payum-ezship/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/recca0120/payum-ezship/?branch=master)The Payum extension to rapidly build new extensions.
1. Create new project
```bash
$ composer create-project payum-tw/ezship
```2. Replace all occurrences of `payum` with your vendor name. It may be your github name, for now let's say you choose: `ezship`.
3. Replace all occurrences of `ezship` with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: `ezship`.
4. Register a gateway factory to the payum's builder and create a gateway:```php
addGatewayFactory('ezship', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
return new \PayumTW\Ezship\EzshipGatewayFactory($config, $coreGatewayFactory);
})->addGateway('ezship', [
'factory' => 'ezship',
'su_id' => null,
])->getPayum();
```5. While using the gateway implement all method where you get `Not implemented` exception:
```php
getGateway('ezship');$model = new \ArrayObject([
// ...
]);$ezship->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).