Download the PHP package creatortsv/omnipay-manager-bundle without Composer
On this page you can find all versions of the php package creatortsv/omnipay-manager-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download creatortsv/omnipay-manager-bundle
More information about creatortsv/omnipay-manager-bundle
Files in creatortsv/omnipay-manager-bundle
Package omnipay-manager-bundle
Short Description Omnipay manager bundle
License MIT
Informations about the package omnipay-manager-bundle
Omnipay Manager Bundle
This bundle provides you some logic to make your own payment service with different omnipay based gateways.
1. Installation
Install this bundle via composer
Make sure that you have installed all the Omnipay gateway packages that you're going to use
For example, if you are going to use Kuberaco.com gateway you must install it
2. Configuration
Default configuration
The first thing that you should is supposed to create your extended with class for each Omnipay gateway package which you're going to use
This classes will be automatically registered with the by default
The second, your classes should be implemented with required method, this method should return the name of the Omnipay gateway which will be used with this adapter class
For example:
That's it! All you have to do is write some code. Configure your gateways and create some logic for identical calling gateway methods
Note: This bundle does not provide you complete functionality to interact with different gateways in the same way. You should write your own logic. Don't forget use interfaces to do this.
Advanced configuration
As it was described above, your adapter classes, which was implemented with abstract bundle class, will be automatically registered as services into class. However, they won't be created until you use them, that means you can configure them as you want.
There are couple different ways to do that:
- Inject in your adapter some services directly from the container
- Inject some other arguments which you can describe in config files
- Override and methods to change the default client, and the request objects for the Omnipay gateway
How to use
After you've configured your adapters all you have to do is inject into your service class or controller method and use it
Done!
Note: Describing identical method for all gateways depends on Omnipay gateway driver
All versions of omnipay-manager-bundle with dependencies
ext-json Version *
nyholm/psr7 Version ^1.8
omnipay/common Version ^3.0
php-http/httplug Version ^2.4
symfony/framework-bundle Version ^6.1
symfony/http-client Version ^6.3