39 lines
905 B
PHP
39 lines
905 B
PHP
<?php
|
|
|
|
namespace Iyzipay\Model;
|
|
|
|
use Iyzipay\Model\Mapper\BkmMapper;
|
|
use Iyzipay\Options;
|
|
use Iyzipay\Request\RetrieveBkmRequest;
|
|
|
|
class Bkm extends PaymentResource
|
|
{
|
|
private $token;
|
|
private $callbackUrl;
|
|
|
|
public static function retrieve(RetrieveBkmRequest $request, Options $options)
|
|
{
|
|
$rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/bkm/auth/detail", parent::getHttpHeaders($request, $options), $request->toJsonString());
|
|
return BkmMapper::create($rawResult)->jsonDecode()->mapBkm(new Bkm());
|
|
}
|
|
|
|
public function getToken()
|
|
{
|
|
return $this->token;
|
|
}
|
|
|
|
public function setToken($token)
|
|
{
|
|
$this->token = $token;
|
|
}
|
|
|
|
public function getCallbackUrl()
|
|
{
|
|
return $this->callbackUrl;
|
|
}
|
|
|
|
public function setCallbackUrl($callbackUrl)
|
|
{
|
|
$this->callbackUrl = $callbackUrl;
|
|
}
|
|
} |