https://github.com/recca0120/payum-allpay
The Payum extension. 歐付寶金流
https://github.com/recca0120/payum-allpay
allpay payum payum-extension php taiwan
Last synced: about 1 year ago
JSON representation
The Payum extension. 歐付寶金流
- Host: GitHub
- URL: https://github.com/recca0120/payum-allpay
- Owner: recca0120
- License: mit
- Created: 2016-07-22T15:13:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T06:06:30.000Z (almost 7 years ago)
- Last Synced: 2025-04-23T12:31:36.678Z (about 1 year ago)
- Topics: allpay, payum, payum-extension, php, taiwan
- Language: PHP
- Homepage:
- Size: 2.09 MB
- Stars: 7
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Allpay
[](https://styleci.io/repos/63962833)
[](https://travis-ci.org/recca0120/payum-allpay)
[](https://packagist.org/packages/payum-tw/allpay)
[](https://packagist.org/packages/payum-tw/allpay)
[](https://packagist.org/packages/payum-tw/allpay)
[](https://packagist.org/packages/payum-tw/allpay)
[](https://packagist.org/packages/payum-tw/allpay)
[](https://packagist.org/packages/payum-tw/allpay)
[](https://scrutinizer-ci.com/g/recca0120/payum-allpay/?branch=master)
[](https://scrutinizer-ci.com/g/recca0120/payum-allpay/?branch=master)
The Payum extension to rapidly build new extensions.
1. Create new project
```bash
$ composer create-project payum-tw/allpay
```
2. Replace all occurrences of `payum` with your vendor name. It may be your github name, for now let's say you choose: `allpay`.
3. Replace all occurrences of `allpay` with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: `allpay`.
4. Register a gateway factory to the payum's builder and create a gateway:
```php
addGatewayFactory('allpay', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
return new \PayumTW\Allpay\AllpayGatewayFactory($config, $coreGatewayFactory);
})
->addGateway('allpay', [
'factory' => 'allpay',
'MerchantID' => '2000132',
'HashKey' => '5294y06JbISpM5x9',
'HashIV' => 'v77hoKGq4kWxNNIS',
'sandbox' => true,
])
->getPayum();
```
5. While using the gateway implement all method where you get `Not implemented` exception:
```php
getGateway('allpay');
$model = new \ArrayObject([
// ...
]);
$allpay->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).