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