Provide a lightweight helper class to make sending requests more convenient. But do not bundle any code to send HTTP requests. This helper class should simply allow to plug Guzzle or HttpAdapter into it, and send requests using one of these libraries. No dependency should be added.
Example:
<?php
$guzzle = new GuzzleHttp\Client;
$context = new Hochstrasser\Wirecard\Context([
'customer_id' => 'D200411',
'secret' => '…',
'language' => 'de',
'shop_id' => 'qmore',
]);
$helper = new Hochstrasser\Wirecard\WirecardHelper($guzzle, $context);
$response = $helper->send(InitDataStorageRequest::withOrderIdentAndReturnUrl(…));
Provide a lightweight helper class to make sending requests more convenient. But do not bundle any code to send HTTP requests. This helper class should simply allow to plug Guzzle or HttpAdapter into it, and send requests using one of these libraries. No dependency should be added.
Example: