Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Sep 30, 2022
1 parent 165beb6 commit 786fd52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/TransactionCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
final class TransactionCloud
{
public const VERSION = 0.1;
private const PROD_API_HOST = 'https://api.transction.cloud';
private const SANDBOX_API_HOST = 'https://sandbox-api.transaction.cloud';
private const PROD_HOSTED_HOST = 'https://hosted.transaction.cloud';
private const SANDBOX_HOSTED_HOST = 'https://sandbox-hosted.transaction.cloud';
public const PROD_API_HOST = 'https://api.transction.cloud';
public const SANDBOX_API_HOST = 'https://sandbox-api.transaction.cloud';
public const PROD_HOSTED_HOST = 'https://hosted.transaction.cloud';
public const SANDBOX_HOSTED_HOST = 'https://sandbox-hosted.transaction.cloud';

private PsrClientInterface $client;
private PsrRequestFactoryInterface $requestFactory;
Expand All @@ -43,7 +43,7 @@ final class TransactionCloud
private string $apiBaseUrl;
private string $hostedBaseUrl;

public function __construct(?PsrClientInterface $client = null, ?PsrRequestFactoryInterface $requestFactory = null, ?StreamFactoryInterface $streamFactory, ?ModelFactory $factory = null, bool $sandbox = true)
public function __construct(?PsrClientInterface $client = null, ?PsrRequestFactoryInterface $requestFactory = null, ?StreamFactoryInterface $streamFactory, ?ModelFactory $factory = null, bool $sandbox = false)
{
$this->client = $client ?? Psr18ClientDiscovery::find();
$this->requestFactory = $requestFactory ?? Psr17FactoryDiscovery::findRequestFactory();
Expand Down

0 comments on commit 786fd52

Please sign in to comment.