for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PayBreak/paybreak-sdk-php package.
*
* (c) PayBreak <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PayBreak\Sdk\Gateways;
use PayBreak\Sdk\Entities\MerchantEntity;
use PayBreak\Sdk\SdkException;
/**
* Class MerchantGateway
* @author WN
* @package PayBreak\Sdk\Gateways
class MerchantGateway extends AbstractGateway
{
* @param $id
* @param $token
* @return MerchantEntity
* @throws SdkException
public function getMerchant($id, $token)
$merchant = MerchantEntity::make($this->fetchDocument('/v4/merchant', $token, 'Merchant'));
$merchant->setAddress(json_encode($merchant->getAddress()));
return $merchant->setId($id);
}