ok
Direktori : /home2/selectio/www/limpiar.in.net/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/ |
Current File : /home2/selectio/www/limpiar.in.net/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Approval.php |
<?php namespace Iyzipay\Model; use Iyzipay\IyzipayResource; use Iyzipay\Model\Mapper\ApprovalMapper; use Iyzipay\Options; use Iyzipay\Request\CreateApprovalRequest; class Approval extends IyzipayResource { private $paymentTransactionId; public static function create(CreateApprovalRequest $request, Options $options) { $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/iyzipos/item/approve", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ApprovalMapper::create($rawResult)->jsonDecode()->mapApproval(new Approval()); } public function getPaymentTransactionId() { return $this->paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } }