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/PeccoPayment.php

<?php

namespace Iyzipay\Model;

use Iyzipay\Model\Mapper\PeccoPaymentMapper;
use Iyzipay\Options;
use Iyzipay\Request\CreatePeccoPaymentRequest;

class PeccoPayment extends PaymentResource
{
    private $token;

    public static function create(CreatePeccoPaymentRequest $request, Options $options)
    {
        $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/pecco/auth", parent::getHttpHeaders($request, $options), $request->toJsonString());
        return PeccoPaymentMapper::create($rawResult)->jsonDecode()->mapPeccoPayment(new PeccoPayment());
    }

    public function getToken()
    {
        return $this->token;
    }

    public function setToken($token)
    {
        $this->token = $token;
    }
}

Zerion Mini Shell 1.0