3. Services
After you create the Configuration you are need instance a few next services.
SignerProvider
Signer provider is the services what provide Signer for each gateway.
use Pixidos\GPWebPay\Signer\SignerFactory;
use Pixidos\GPWebPay\Signer\SignerProvider;
$signerProvider = new SignerProvider(new SignerFactory(), $config->getSignerConfigProvider());
RequestFactory
Request factory is helper what provide creating Request object from The Operation
use Pixidos\GPWebPay\Factory\RequestFactory;
$requestFactory = new RequestFactory($config->getPaymentConfigProvider(), $signerProvider);
ResponseFactory
Service for creating Response from received params
use Pixidos\GPWebPay\Factory\ResponseFactory;
$responseFactory = new ResponseFactory($config->getPaymentConfigProvider());
ResponseProvider
Is service what validate and can processed Response
use Pixidos\GPWebPay\ResponseProvider;
$provider = new ResponseProvider(
$config->getPaymentConfigProvider(), $signerProvider
);