https://github.com/recca0120/payum-mypay
The Payum extension. MyPay金流
https://github.com/recca0120/payum-mypay
mypay payum payum-extension php taiwan
Last synced: 4 months ago
JSON representation
The Payum extension. MyPay金流
- Host: GitHub
- URL: https://github.com/recca0120/payum-mypay
- Owner: recca0120
- License: mit
- Created: 2016-09-11T02:58:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T04:33:50.000Z (almost 7 years ago)
- Last Synced: 2025-04-23T12:31:26.627Z (6 months ago)
- Topics: mypay, payum, payum-extension, php, taiwan
- Language: PHP
- Homepage:
- Size: 2.56 MB
- Stars: 3
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mypay
[](https://styleci.io/repos/67906669)
[](https://travis-ci.org/recca0120/payum-mypay)
[](https://packagist.org/packages/payum-tw/mypay)
[](https://packagist.org/packages/payum-tw/mypay)
[](https://packagist.org/packages/payum-tw/mypay)
[](https://packagist.org/packages/payum-tw/mypay)
[](https://packagist.org/packages/payum-tw/mypay)
[](https://packagist.org/packages/payum-tw/mypay)
[](https://scrutinizer-ci.com/g/recca0120/payum-mypay/?branch=master)
[](https://scrutinizer-ci.com/g/recca0120/payum-mypay/?branch=master)The Payum extension to rapidly build new extensions.
1. Create new project
```bash
$ composer create-project payum-tw/mypay
```2. Replace all occurrences of `payum` with your vendor name. It may be your github name, for now let's say you choose: `acme`.
3. Replace all occurrences of `mypay` with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: `mypay`.
4. Register a gateway factory to the payum's builder and create a gateway:```php
addGatewayFactory('mypay', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
return new \PayumTW\Allpay\AllpayGatewayFactory($config, $coreGatewayFactory);
})->addGateway('mypay', [
'factory' => 'mypay',
'MerCode' => null,
'MerKey' => null,
'MerName' => null,
'Account' => null,
'sandbox' => true,
])->getPayum()
;
```5. While using the gateway implement all method where you get `Not implemented` exception:
```php
getGateway('mypay');$model = new \ArrayObject([
// ...
]);$mypay->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).