ok

Mini Shell

Direktori : /home2/selectio/www/limpiar.in.net/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/
Upload File :
Current File : //home2/selectio/www/limpiar.in.net/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/PayWithIyzico.php

<?php

namespace Iyzipay\Model;

use Iyzipay\Model\Mapper\PayWithIyzicoMapper;
use Iyzipay\Options;
use Iyzipay\Request\RetrievePayWithIyzicoRequest;

class PayWithIyzico extends PaymentResource
{
    private $token;
    private $callbackUrl;

    public static function retrieve(RetrievePayWithIyzicoRequest $request, Options $options)
    {
        $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/iyzipos/checkoutform/auth/ecom/detail", parent::getHttpHeaders($request, $options), $request->toJsonString());

        return PayWithIyzicoMapper::create($rawResult)->jsonDecode()->mapPayWithIyzico(new PayWithIyzico());
    }

    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;
    }
}

Zerion Mini Shell 1.0