Skip to content

Commit

Permalink
issue #165 EstV3pos added callbackUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym committed Nov 18, 2023
1 parent 0aa3372 commit 55f9b27
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/_main_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@
$hostUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http')."://$_SERVER[HTTP_HOST]";
$subMenu = [];

$handler = new \Monolog\Handler\StreamHandler(__DIR__.'/../var/log/pos.log', \Psr\Log\LogLevel::DEBUG);
$logger = new \Monolog\Logger('pos', [$handler]);

function getGateway(\Mews\Pos\Entity\Account\AbstractPosAccount $account): ?\Mews\Pos\PosInterface
{
try {
$handler = new \Monolog\Handler\StreamHandler(__DIR__.'/../var/log/pos.log', \Psr\Log\LogLevel::DEBUG);
$logger = new \Monolog\Logger('pos', [$handler]);

/* $client = new HttpClient(
new \Http\Client\Curl\Client(),
new \Slim\Psr7\Factory\RequestFactory(),
new \Slim\Psr7\Factory\StreamFactory()
);*/

global $logger;

$pos = \Mews\Pos\Factory\PosFactory::createPosGateway($account, null, null, $logger);
$pos->setTestMode(true);

Expand Down

0 comments on commit 55f9b27

Please sign in to comment.