tsetsee / payum-qpay
The Payum extension. Rapid extensino development
Installs: 312
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- http-interop/http-factory-guzzle: ^1.2
- payum/core: ^1.5
- php-http/discovery: ^1.19
- php-http/httplug: ^1.1
- php-http/message-factory: ^1.1
- psr/http-factory-implementation: *
- tsetsee/qpay-php-api: ^1.0.8
- webmozart/assert: ^1.11
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.40
- php-http/guzzle6-adapter: ^1.0
- phpstan/phpstan: ^1.10
- symfony/phpunit-bridge: ^7.0
- symfony/property-info: ^6.0.0
- symfony/var-dumper: ^6.4.0
README
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:
Skeleton
The Payum extension to rapidly build new extensions.
- Create new project
$ composer create-project payum/skeleton
- Replace all occurrences of
payum
with your vendor name. It may be your github name, for now let's say you choose:acme
. - Replace all occurrences of
skeleton
with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose:paypal
. - Register a gateway factory to the payum's builder and create a gateway:
<?php use Payum\Core\PayumBuilder; use Payum\Core\GatewayFactoryInterface; $defaultConfig = []; $payum = (new PayumBuilder) ->addGatewayFactory('paypal', function(array $config, GatewayFactoryInterface $coreGatewayFactory) { return new \Acme\Paypal\PaypalGatewayFactory($config, $coreGatewayFactory); }) ->addGateway('paypal', [ 'factory' => 'paypal', 'sandbox' => true, ]) ->getPayum() ;
- While using the gateway implement all method where you get
Not implemented
exception:
<?php use Payum\Core\Request\Capture; $paypal = $payum->getGateway('paypal'); $model = new \ArrayObject([ // ... ]); $paypal->execute(new Capture($model));
Resources
Developed by Forma-Pro
Forma-Pro is a full stack development company which interests also spread to open source development. Being a team of strong professionals we have an aim an ability to help community by developing cutting edge solutions in the areas of e-commerce, docker & microservice oriented architecture where we have accumulated a huge many-years experience. Our main specialization is Symfony framework based solution, but we are always looking to the technologies that allow us to do our job the best way. We are committed to creating solutions that revolutionize the way how things are developed in aspects of architecture & scalability.
If you have any questions and inquires about our open source development, this product particularly or any other matter feel free to contact at opensource@forma-pro.com
License
Skeleton is released under the MIT License.