JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbriyzipay-php/composer.json000064400000001516150364332050011555 0ustar00{ "name": "iyzico/iyzipay-php", "type": "library", "description": "iyzipay api php client", "homepage": "https://www.iyzico.com", "keywords": [ "iyzico", "iyzipay", "iyzico.com", "iyzipay php", "iyzipay api", "iyzipay api php client", "iyzipay api php", "payment processing" ], "license": "MIT", "authors": [ { "name": "iyzico and contributors", "homepage": "https://github.com/iyzico/iyzipay-php/contributors" } ], "require": { "php": ">=5.3.0", "ext-curl": "*" }, "require-dev": { "phpunit/phpunit": "~4.0", "satooshi/php-coveralls": "~0.6.1" }, "autoload": { "psr-4": { "Iyzipay\\": "src/Iyzipay/" } }, "autoload-dev": { "psr-4": { "": "tests/" } }, "scripts": { "test": "vendor/bin/phpunit --colors" } } iyzipay-php/src/Iyzipay/IyzipayResource.php000064400000006041150364332050015135 0ustar00getApiKey(), $options->getSecretKey(), $rnd, $request); return vsprintf("IYZWS %s:%s", array($options->getApiKey(), $authContent)); } protected static function prepareAuthorizationStringV2($uri, Request $request = null, Options $options, $rnd) { $hash = IyziAuthV2Generator::generateAuthContent($uri, $options->getApiKey(), $options->getSecretKey(), $rnd, $request); return 'IYZWSv2'.' '.$hash; } public function getStatus() { return $this->status; } public function setStatus($status) { $this->status = $status; } public function getErrorCode() { return $this->errorCode; } public function setErrorCode($errorCode) { $this->errorCode = $errorCode; } public function getErrorMessage() { return $this->errorMessage; } public function setErrorMessage($errorMessage) { $this->errorMessage = $errorMessage; } public function getErrorGroup() { return $this->errorGroup; } public function setErrorGroup($errorGroup) { $this->errorGroup = $errorGroup; } public function getLocale() { return $this->locale; } public function setLocale($locale) { $this->locale = $locale; } public function getSystemTime() { return $this->systemTime; } public function setSystemTime($systemTime) { $this->systemTime = $systemTime; } public function getConversationId() { return $this->conversationId; } public function setConversationId($conversationId) { $this->conversationId = $conversationId; } }iyzipay-php/src/Iyzipay/HttpClient.php000064400000000441150364332050014043 0ustar00json = $json; } public static function create() { return new JsonBuilder(array()); } public static function fromJsonObject($json) { return new JsonBuilder($json); } /** * @param $key * @param $value * @return JsonBuilder */ public function add($key, $value = null) { if (isset($value)) { if ($value instanceof JsonConvertible) { $this->json[$key] = $value->getJsonObject(); } else { $this->json[$key] = $value; } } return $this; } /** * @param $key * @param $value * @return JsonBuilder */ public function addPrice($key, $value = null) { if (isset($value)) { $this->json[$key] = RequestFormatter::formatPrice($value); } return $this; } /** * @param $key * @param array $array * @return JsonBuilder */ public function addArray($key, array $array = null) { if (isset($array)) { foreach ($array as $index => $value) { if ($value instanceof JsonConvertible) { $this->json[$key][$index] = $value->getJsonObject(); } else { $this->json[$key][$index] = $value; } } } return $this; } public function getObject() { return $this->json; } public static function jsonEncode($jsonObject) { return json_encode($jsonObject); } public static function jsonDecode($rawResult) { return json_decode($rawResult); } }iyzipay-php/src/Iyzipay/ApiResource.php000064400000001106150364332050014205 0ustar00rawResult; } public function setRawResult($rawResult) { $this->rawResult = $rawResult; } }iyzipay-php/src/Iyzipay/HashGenerator.php000064400000000452150364332050014521 0ustar00toPKIRequestString(); return base64_encode(sha1($hashStr, true)); } }iyzipay-php/src/Iyzipay/Request/CreateSubMerchantRequest.php000064400000012462150364332050020333 0ustar00name; } public function setName($name) { $this->name = $name; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getAddress() { return $this->address; } public function setAddress($address) { $this->address = $address; } public function getIban() { return $this->iban; } public function setIban($iban) { $this->iban = $iban; } public function getTaxOffice() { return $this->taxOffice; } public function setTaxOffice($taxOffice) { $this->taxOffice = $taxOffice; } public function getContactName() { return $this->contactName; } public function setContactName($contactName) { $this->contactName = $contactName; } public function getContactSurname() { return $this->contactSurname; } public function setContactSurname($contactSurname) { $this->contactSurname = $contactSurname; } public function getLegalCompanyTitle() { return $this->legalCompanyTitle; } public function setLegalCompanyTitle($legalCompanyTitle) { $this->legalCompanyTitle = $legalCompanyTitle; } public function getSwiftCode() { return $this->swiftCode; } public function setSwiftCode($swiftCode) { $this->swiftCode = $swiftCode; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getTaxNumber() { return $this->taxNumber; } public function setTaxNumber($taxNumber) { $this->taxNumber = $taxNumber; } public function getSubMerchantExternalId() { return $this->subMerchantExternalId; } public function setSubMerchantExternalId($subMerchantExternalId) { $this->subMerchantExternalId = $subMerchantExternalId; } public function getSubMerchantType() { return $this->subMerchantType; } public function setSubMerchantType($subMerchantType) { $this->subMerchantType = $subMerchantType; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("name", $this->getName()) ->add("email", $this->getEmail()) ->add("gsmNumber", $this->getGsmNumber()) ->add("address", $this->getAddress()) ->add("iban", $this->getIban()) ->add("taxOffice", $this->getTaxOffice()) ->add("contactName", $this->getContactName()) ->add("contactSurname", $this->getContactSurname()) ->add("legalCompanyTitle", $this->getLegalCompanyTitle()) ->add("swiftCode", $this->getSwiftCode()) ->add("currency", $this->getCurrency()) ->add("subMerchantExternalId", $this->getSubMerchantExternalId()) ->add("identityNumber", $this->getIdentityNumber()) ->add("taxNumber", $this->getTaxNumber()) ->add("subMerchantType", $this->getSubMerchantType()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("name", $this->getName()) ->append("email", $this->getEmail()) ->append("gsmNumber", $this->getGsmNumber()) ->append("address", $this->getAddress()) ->append("iban", $this->getIban()) ->append("taxOffice", $this->getTaxOffice()) ->append("contactName", $this->getContactName()) ->append("contactSurname", $this->getContactSurname()) ->append("legalCompanyTitle", $this->getLegalCompanyTitle()) ->append("swiftCode", $this->getSwiftCode()) ->append("currency", $this->getCurrency()) ->append("subMerchantExternalId", $this->getSubMerchantExternalId()) ->append("identityNumber", $this->getIdentityNumber()) ->append("taxNumber", $this->getTaxNumber()) ->append("subMerchantType", $this->getSubMerchantType()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveBkmRequest.php000064400000001373150364332050017212 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("token", $this->getToken()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("token", $this->getToken()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveBinNumberRequest.php000064400000001455150364332050020363 0ustar00binNumber; } public function setBinNumber($binNumber) { $this->binNumber = $binNumber; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("binNumber", $this->getBinNumber()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("binNumber", $this->getBinNumber()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateBasicPaymentRequest.php000064400000010041150364332050020466 0ustar00setInstallment(Constants::SINGLE_INSTALLMENT); } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getInstallment() { return $this->installment; } public function setInstallment($installment) { $this->installment = $installment; } public function getBuyerEmail() { return $this->buyerEmail; } public function setBuyerEmail($buyerEmail) { $this->buyerEmail = $buyerEmail; } public function getBuyerId() { return $this->buyerId; } public function setBuyerId($buyerId) { $this->buyerId = $buyerId; } public function getBuyerIp() { return $this->buyerIp; } public function setBuyerIp($buyerIp) { $this->buyerIp = $buyerIp; } public function getPosOrderId() { return $this->posOrderId; } public function setPosOrderId($posOrderId) { $this->posOrderId = $posOrderId; } public function getPaymentCard() { return $this->paymentCard; } public function setPaymentCard($paymentCard) { $this->paymentCard = $paymentCard; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getConnectorName() { return $this->connectorName; } public function setConnectorName($connectorName) { $this->connectorName = $connectorName; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->addPrice("price", $this->getPrice()) ->addPrice("paidPrice", $this->getPaidPrice()) ->add("installment", $this->getInstallment()) ->add("buyerEmail", $this->getBuyerEmail()) ->add("buyerId", $this->getBuyerId()) ->add("buyerIp", $this->getBuyerIp()) ->add("posOrderId", $this->getPosOrderId()) ->add("paymentCard", $this->getPaymentCard()) ->add("currency", $this->getCurrency()) ->add("connectorName", $this->getConnectorName()) ->add("callbackUrl", $this->getCallbackUrl()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->appendPrice("price", $this->getPrice()) ->appendPrice("paidPrice", $this->getPaidPrice()) ->append("installment", $this->getInstallment()) ->append("buyerEmail", $this->getBuyerEmail()) ->append("buyerId", $this->getBuyerId()) ->append("buyerIp", $this->getBuyerIp()) ->append("posOrderId", $this->getPosOrderId()) ->append("paymentCard", $this->getPaymentCard()) ->append("currency", $this->getCurrency()) ->append("connectorName", $this->getConnectorName()) ->append("callbackUrl", $this->getCallbackUrl()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/PagininRequest.php000064400000001273150364332050016357 0ustar00page; } public function setPage($page) { $this->page = $page; } public function getCount() { return $this->count; } public function setCount($count) { $this->count = $count; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("page", $this->getPage()) ->add("count", $this->getCount()) ->getObject(); } } iyzipay-php/src/Iyzipay/Request/RetrieveIyziupFormRequest.php000064400000001402150364332050020607 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("token", $this->getToken()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("token", $this->getToken()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateApprovalRequest.php000064400000001643150364332050017703 0ustar00paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentTransactionId", $this->getPaymentTransactionId()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentTransactionId", $this->getPaymentTransactionId()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreatePayWithIyzicoInitializeRequest.php000064400000011420150364332050022707 0ustar00price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getBasketId() { return $this->basketId; } public function setBasketId($basketId) { $this->basketId = $basketId; } public function getPaymentGroup() { return $this->paymentGroup; } public function setPaymentGroup($paymentGroup) { $this->paymentGroup = $paymentGroup; } public function getPaymentSource() { return $this->paymentSource; } public function setPaymentSource($paymentSource) { $this->paymentSource = $paymentSource; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getBuyer() { return $this->buyer; } public function setBuyer($buyer) { $this->buyer = $buyer; } public function getShippingAddress() { return $this->shippingAddress; } public function setShippingAddress($shippingAddress) { $this->shippingAddress = $shippingAddress; } public function getBillingAddress() { return $this->billingAddress; } public function setBillingAddress($billingAddress) { $this->billingAddress = $billingAddress; } public function getBasketItems() { return $this->basketItems; } public function setBasketItems($basketItems) { $this->basketItems = $basketItems; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getPosOrderId() { return $this->posOrderId; } public function setPosOrderId($posOrderId) { $this->posOrderId = $posOrderId; } public function setEnabledInstallments($enabledInstallments) { $this->enabledInstallments = $enabledInstallments; } public function getEnabledInstallments() { return $this->enabledInstallments; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->addPrice("price", $this->getPrice()) ->add("basketId", $this->getBasketId()) ->add("paymentGroup", $this->getPaymentGroup()) ->add("buyer", $this->getBuyer()) ->add("shippingAddress", $this->getShippingAddress()) ->add("billingAddress", $this->getBillingAddress()) ->addArray("basketItems", $this->getBasketItems()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("paymentSource", $this->getPaymentSource()) ->add("currency", $this->getCurrency()) ->add("posOrderId", $this->getPosOrderId()) ->addPrice("paidPrice", $this->getPaidPrice()) ->addArray("enabledInstallments", $this->getEnabledInstallments()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->appendPrice("price", $this->getPrice()) ->append("basketId", $this->getBasketId()) ->append("paymentGroup", $this->getPaymentGroup()) ->append("buyer", $this->getBuyer()) ->append("shippingAddress", $this->getShippingAddress()) ->append("billingAddress", $this->getBillingAddress()) ->appendArray("basketItems", $this->getBasketItems()) ->append("callbackUrl", $this->getCallbackUrl()) ->append("paymentSource", $this->getPaymentSource()) ->append("currency", $this->getCurrency()) ->append("posOrderId", $this->getPosOrderId()) ->appendPrice("paidPrice", $this->getPaidPrice()) ->appendArray("enabledInstallments", $this->getEnabledInstallments()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateThreedsPaymentRequest.php000064400000002266150364332050021055 0ustar00paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getConversationData() { return $this->conversationData; } public function setConversationData($conversationData) { $this->conversationData = $conversationData; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentId", $this->getPaymentId()) ->add("conversationData", $this->getConversationData()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentId", $this->getPaymentId()) ->append("conversationData", $this->getConversationData()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateBkmInitializeRequest.php000064400000010172150364332050020647 0ustar00price; } public function setPrice($price) { $this->price = $price; } public function getBasketId() { return $this->basketId; } public function setBasketId($basketId) { $this->basketId = $basketId; } public function getPaymentGroup() { return $this->paymentGroup; } public function setPaymentGroup($paymentGroup) { $this->paymentGroup = $paymentGroup; } public function getBuyer() { return $this->buyer; } public function setBuyer($buyer) { $this->buyer = $buyer; } public function getShippingAddress() { return $this->shippingAddress; } public function setShippingAddress($shippingAddress) { $this->shippingAddress = $shippingAddress; } public function getBillingAddress() { return $this->billingAddress; } public function setBillingAddress($billingAddress) { $this->billingAddress = $billingAddress; } public function getBasketItems() { return $this->basketItems; } public function setBasketItems($basketItems) { $this->basketItems = $basketItems; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getPaymentSource() { return $this->paymentSource; } public function setPaymentSource($paymentSource) { $this->paymentSource = $paymentSource; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function setEnabledInstallments($enabledInstallments) { $this->enabledInstallments = $enabledInstallments; } public function getEnabledInstallments() { return $this->enabledInstallments; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->addPrice("price", $this->getPrice()) ->add("basketId", $this->getBasketId()) ->add("paymentGroup", $this->getPaymentGroup()) ->add("buyer", $this->getBuyer()) ->add("shippingAddress", $this->getShippingAddress()) ->add("billingAddress", $this->getBillingAddress()) ->addArray("basketItems", $this->getBasketItems()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("paymentSource", $this->getPaymentSource()) ->add("currency", $this->getCurrency()) ->addArray("enabledInstallments", $this->getEnabledInstallments()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->appendPrice("price", $this->getPrice()) ->append("basketId", $this->getBasketId()) ->append("paymentGroup", $this->getPaymentGroup()) ->append("buyer", $this->getBuyer()) ->append("shippingAddress", $this->getShippingAddress()) ->append("billingAddress", $this->getBillingAddress()) ->appendArray("basketItems", $this->getBasketItems()) ->append("callbackUrl", $this->getCallbackUrl()) ->append("paymentSource", $this->getPaymentSource()) ->append("currency", $this->getCurrency()) ->appendArray("enabledInstallments", $this->getEnabledInstallments()) ->getRequestString(); } } iyzipay-php/src/Iyzipay/Request/SubMerchantPaymentItemUpdateRequest.php000064400000003260150364332050022523 0ustar00subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getPaymentTransactionId() { return $this->paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getSubMerchantPrice() { return $this->subMerchantPrice; } public function setSubMerchantPrice($subMerchantPrice) { $this->subMerchantPrice = $subMerchantPrice; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("subMerchantKey", $this->getSubMerchantKey()) ->add("paymentTransactionId", $this->getPaymentTransactionId()) ->addPrice("subMerchantPrice", $this->getSubMerchantPrice()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("subMerchantKey", $this->getSubMerchantKey()) ->append("paymentTransactionId", $this->getPaymentTransactionId()) ->append("subMerchantPrice", $this->getSubMerchantPrice()) ->getRequestString(); } } iyzipay-php/src/Iyzipay/Request/RetrieveApmRequest.php000064400000001447150364332050017220 0ustar00paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentId", $this->getPaymentId()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentId", $this->getPaymentId()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/Iyzilink/IyziLinkSaveProductRequest.php000064400000006154150364332050022521 0ustar00name; } public function setName($name) { $this->name = $name; } public function getDescription() { return $this->description; } public function setDescription($description) { $this->description = $description; } public function getBase64EncodedImage() { return $this->base64EncodedImage; } public function setBase64EncodedImage($base64EncodedImage) { $this->base64EncodedImage = $base64EncodedImage; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getAddressIgnorable() { return $this->addressIgnorable; } public function setAddressIgnorable($addressIgnorable) { $this->addressIgnorable = $addressIgnorable; } public function getSoldLimit() { return $this->soldLimit; } public function setSoldLimit($soldLimit) { $this->soldLimit = $soldLimit; } public function getInstallmentRequested() { return $this->installmentRequested; } public function setInstallmentRequest($installmentRequested) { $this->installmentRequested = $installmentRequested; } public function getToken() { return $this->token; } public function setToken($token) { $this->token = $token; } public function getUrl() { return $this->url; } public function setUrl($url) { $this->url = $url; } public function getImageUrl() { return $this->imageUrl; } public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->addPrice("price", $this->getPrice()) ->add("name", $this->getName()) ->add("description", $this->getDescription()) ->add("encodedImageFile", $this->getBase64EncodedImage()) ->add("currencyCode", $this->getCurrency()) ->add("addressIgnorable", $this->getAddressIgnorable()) ->add("soldLimit", $this->getSoldLimit()) ->add("installmentRequested", $this->getInstallmentRequested()) ->add("token", $this->getToken()) ->add("url", $this->getUrl()) ->add("imageUrl", $this->getImageUrl()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/RetrieveCheckoutFormRequest.php000064400000001404150364332050021065 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("token", $this->getToken()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("token", $this->getToken()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveCardListRequest.php000064400000001502150364332050020200 0ustar00cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("cardUserKey", $this->getCardUserKey()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("cardUserKey", $this->getCardUserKey()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/ReportingPaymentTransactionRequest.php000064400000001447150364332050022512 0ustar00transactionDate; } public function setTransactionDate($transactionDate) { $this->transactionDate = $transactionDate; } public function getPage() { return $this->page; } public function setPage($page) { $this->page = $page; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("transactionDate", $this->getTransactionDate()) ->add("page", $this->getPage()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/RetrievePaymentRequest.php000064400000002350150364332050020112 0ustar00paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getPaymentConversationId() { return $this->paymentConversationId; } public function setPaymentConversationId($paymentConversationId) { $this->paymentConversationId = $paymentConversationId; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentId", $this->getPaymentId()) ->add("paymentConversationId", $this->getPaymentConversationId()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentId", $this->getPaymentId()) ->append("paymentConversationId", $this->getPaymentConversationId()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveSubMerchantRequest.php000064400000001663150364332050020716 0ustar00subMerchantExternalId; } public function setSubMerchantExternalId($subMerchantExternalId) { $this->subMerchantExternalId = $subMerchantExternalId; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("subMerchantExternalId", $this->getSubMerchantExternalId()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("subMerchantExternalId", $this->getSubMerchantExternalId()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateRefundRequest.php000064400000004471150364332050017344 0ustar00paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getIp() { return $this->ip; } public function setIp($ip) { $this->ip = $ip; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getReason() { return $this->reason; } public function setReason($reason) { $this->reason = $reason; } public function getDescription() { return $this->description; } public function setDescription($description) { $this->description = $description; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentTransactionId", $this->getPaymentTransactionId()) ->addPrice("price", $this->getPrice()) ->add("ip", $this->getIp()) ->add("currency", $this->getCurrency()) ->add("reason", $this->getReason()) ->add("description", $this->getDescription()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentTransactionId", $this->getPaymentTransactionId()) ->appendPrice("price", $this->getPrice()) ->append("ip", $this->getIp()) ->append("currency", $this->getCurrency()) ->append("reason", $this->getReason()) ->append("description", $this->getDescription()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateCardRequest.php000064400000003217150364332050016767 0ustar00externalId; } public function setExternalId($externalId) { $this->externalId = $externalId; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getCardUserKey() { return $this->cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getCard() { return $this->card; } public function setCard($card) { $this->card = $card; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("externalId", $this->getExternalId()) ->add("email", $this->getEmail()) ->add("cardUserKey", $this->getCardUserKey()) ->add("card", $this->getCard()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("externalId", $this->getExternalId()) ->append("email", $this->getEmail()) ->append("cardUserKey", $this->getCardUserKey()) ->append("card", $this->getCard()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveLoyaltyRequest.php000064400000002204150364332050020130 0ustar00currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getPaymentCard() { return $this->paymentCard; } public function setPaymentCard($paymentCard) { $this->paymentCard = $paymentCard; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentCard", $this->getPaymentCard()) ->add("currency", $this->getCurrency()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentCard", $this->getPaymentCard()) ->append("currency", $this->getCurrency()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreatePaymentPostAuthRequest.php000064400000003216150364332050021222 0ustar00paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getIp() { return $this->ip; } public function setIp($ip) { $this->ip = $ip; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentId", $this->getPaymentId()) ->add("ip", $this->getIp()) ->addPrice("paidPrice", $this->getPaidPrice()) ->add("currency", $this->getCurrency()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentId", $this->getPaymentId()) ->append("ip", $this->getIp()) ->appendPrice("paidPrice", $this->getPaidPrice()) ->append("currency", $this->getCurrency()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateIyziupFormInitializeRequest.php000064400000013267150364332050022263 0ustar00price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getShippingPrice() { return $this->shippingPrice; } public function setShippingPrice($shippingPrice) { $this->shippingPrice = $shippingPrice; } public function getPaymentGroup() { return $this->paymentGroup; } public function setPaymentGroup($paymentGroup) { $this->paymentGroup = $paymentGroup; } public function getPaymentSource() { return $this->paymentSource; } public function setPaymentSource($paymentSource) { $this->paymentSource = $paymentSource; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getOrderItems() { return $this->orderItems; } public function setOrderItems($orderItems) { $this->orderItems = $orderItems; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getTermsUrl() { return $this->termsUrl; } public function setTermsUrl($termsUrl) { $this->termsUrl = $termsUrl; } public function getPreSalesContractUrl() { return $this->preSalesContractUrl; } public function setPreSalesContractUrl($preSalesContractUrl) { $this->preSalesContractUrl = $preSalesContractUrl; } public function getForceThreeDS() { return $this->forceThreeDS; } public function setForceThreeDS($forceThreeDS) { $this->forceThreeDS = $forceThreeDS; } public function getMerchantOrderId() { return $this->merchantOrderId; } public function setMerchantOrderId($merchantOrderId) { $this->merchantOrderId = $merchantOrderId; } public function setEnabledInstallments($enabledInstallments) { $this->enabledInstallments = $enabledInstallments; } public function getEnabledInstallments() { return $this->enabledInstallments; } public function getEnabledCardFamily() { return $this->enabledCardFamily; } public function setEnabledCardFamily($enabledCardFamily) { $this->enabledCardFamily = $enabledCardFamily; } public function getInitialConsumer() { return $this->initialConsumer; } public function setInitialConsumer($initialConsumer) { $this->initialConsumer = $initialConsumer; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("merchantOrderId", $this->getMerchantOrderId()) ->add("paymentGroup", $this->getPaymentGroup()) ->add("paymentSource", $this->getPaymentSource()) ->add("forceThreeDS", $this->getForceThreeDS()) ->addArray("enabledInstallments", $this->getEnabledInstallments()) ->add("enabledCardFamily", $this->getEnabledCardFamily()) ->add("currency", $this->getCurrency()) ->addPrice("price", $this->getPrice()) ->addPrice("paidPrice", $this->getPaidPrice()) ->addPrice("shippingPrice", $this->getShippingPrice()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("termsUrl", $this->getTermsUrl()) ->add("preSalesContractUrl", $this->getPreSalesContractUrl()) ->addArray("orderItems", $this->getOrderItems()) ->add("initialConsumer", $this->getInitialConsumer()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("merchantOrderId", $this->getMerchantOrderId()) ->append("paymentGroup", $this->getPaymentGroup()) ->append("paymentSource", $this->getPaymentSource()) ->append("forceThreeDS", $this->getForceThreeDS()) ->appendArray("enabledInstallments", $this->getEnabledInstallments()) ->append("enabledCardFamily", $this->getEnabledCardFamily()) ->append("currency", $this->getCurrency()) ->appendPrice("price", $this->getPrice()) ->appendPrice("paidPrice", $this->getPaidPrice()) ->appendPrice("shippingPrice", $this->getShippingPrice()) ->append("callbackUrl", $this->getCallbackUrl()) ->append("termsUrl", $this->getTermsUrl()) ->append("preSalesContractUrl", $this->getPreSalesContractUrl()) ->appendArray("orderItems", $this->getOrderItems()) ->append("initialConsumer", $this->getInitialConsumer()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/UCSInitializeRequest.php000064400000001353150364332050017445 0ustar00gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email= $email; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("email", $this->getEmail()) ->add("gsmNumber", $this->getGsmNumber()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/DeleteCardRequest.php000064400000002165150364332050016767 0ustar00cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getCardToken() { return $this->cardToken; } public function setCardToken($cardToken) { $this->cardToken = $cardToken; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("cardUserKey", $this->getCardUserKey()) ->add("cardToken", $this->getCardToken()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("cardUserKey", $this->getCardUserKey()) ->append("cardToken", $this->getCardToken()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveProtectedOverleyScriptRequest.php000064400000001457150364332050023170 0ustar00position; } public function setPosition($position) { $this->position = $position; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("position", $this->getPosition()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("position", $this->getPosition()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateSettlementToBalanceRequest.php000064400000002722150364332050022013 0ustar00subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("subMerchantKey", $this->getSubMerchantKey()) ->add("callbackUrl", $this->getCallbackUrl()) ->addPrice("price", $this->getPrice()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("subMerchantKey", $this->getSubMerchantKey()) ->append("callbackUrl", $this->getCallbackUrl()) ->appendPrice("price", $this->getPrice()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrievePayWithIyzicoRequest.php000064400000001405150364332050021251 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("token", $this->getToken()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("token", $this->getToken()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreatePaymentRequest.php000064400000014727150364332050017543 0ustar00setInstallment(Constants::SINGLE_INSTALLMENT); } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getInstallment() { return $this->installment; } public function setInstallment($installment) { $this->installment = $installment; } public function getPaymentChannel() { return $this->paymentChannel; } public function setPaymentChannel($paymentChannel) { $this->paymentChannel = $paymentChannel; } public function getBasketId() { return $this->basketId; } public function setBasketId($basketId) { $this->basketId = $basketId; } public function getPaymentGroup() { return $this->paymentGroup; } public function setPaymentGroup($paymentGroup) { $this->paymentGroup = $paymentGroup; } public function getReward() { return $this->reward; } public function setReward($reward) { $this->reward = $reward; } public function getPaymentCard() { return $this->paymentCard; } public function setPaymentCard($paymentCard) { $this->paymentCard = $paymentCard; } public function getBuyer() { return $this->buyer; } public function setBuyer($buyer) { $this->buyer = $buyer; } public function getShippingAddress() { return $this->shippingAddress; } public function setShippingAddress($shippingAddress) { $this->shippingAddress = $shippingAddress; } public function getBillingAddress() { return $this->billingAddress; } public function setBillingAddress($billingAddress) { $this->billingAddress = $billingAddress; } public function getBasketItems() { return $this->basketItems; } public function setBasketItems($basketItems) { $this->basketItems = $basketItems; } public function getPaymentSource() { return $this->paymentSource; } public function setPaymentSource($paymentSource) { $this->paymentSource = $paymentSource; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getPosOrderId() { return $this->posOrderId; } public function setPosOrderId($posOrderId) { $this->posOrderId = $posOrderId; } public function getConnectorName() { return $this->connectorName; } public function setConnectorName($connectorName) { $this->connectorName = $connectorName; } public function getPlusInstallmentUsage() { return $this->plusInstallmentUsage; } public function setPlusInstallmentUsage($plusInstallmentUsage) { $this->plusInstallmentUsage = $plusInstallmentUsage; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->addPrice("price", $this->getPrice()) ->addPrice("paidPrice", $this->getPaidPrice()) ->add("installment", $this->getInstallment()) ->add("paymentChannel", $this->getPaymentChannel()) ->add("basketId", $this->getBasketId()) ->add("paymentGroup", $this->getPaymentGroup()) ->add("reward", $this->getReward()) ->add("paymentCard", $this->getPaymentCard()) ->add("buyer", $this->getBuyer()) ->add("shippingAddress", $this->getShippingAddress()) ->add("billingAddress", $this->getBillingAddress()) ->addArray("basketItems", $this->getBasketItems()) ->add("paymentSource", $this->getPaymentSource()) ->add("currency", $this->getCurrency()) ->add("posOrderId", $this->getPosOrderId()) ->add("connectorName", $this->getConnectorName()) ->add("plusInstallmentUsage", $this->getPlusInstallmentUsage()) ->add("callbackUrl", $this->getCallbackUrl()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->appendPrice("price", $this->getPrice()) ->appendPrice("paidPrice", $this->getPaidPrice()) ->append("installment", $this->getInstallment()) ->append("paymentChannel", $this->getPaymentChannel()) ->append("basketId", $this->getBasketId()) ->append("paymentGroup", $this->getPaymentGroup()) ->append("paymentCard", $this->getPaymentCard()) ->append("buyer", $this->getBuyer()) ->append("shippingAddress", $this->getShippingAddress()) ->append("billingAddress", $this->getBillingAddress()) ->appendArray("basketItems", $this->getBasketItems()) ->append("paymentSource", $this->getPaymentSource()) ->append("currency", $this->getCurrency()) ->append("posOrderId", $this->getPosOrderId()) ->append("connectorName", $this->getConnectorName()) ->append("plusInstallmentUsage", $this->getPlusInstallmentUsage()) ->append("callbackUrl", $this->getCallbackUrl()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveInstallmentInfoRequest.php000064400000002570150364332050021607 0ustar00binNumber; } public function setBinNumber($binNumber) { $this->binNumber = $binNumber; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("binNumber", $this->getBinNumber()) ->addPrice("price", $this->getPrice()) ->add("currency", $this->getCurrency()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("binNumber", $this->getBinNumber()) ->appendPrice("price", $this->getPrice()) ->append("currency", $this->getCurrency()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionDeletePricingPlanRequest.php000064400000001443150364332050025413 0ustar00pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { $this->pricingPlanReferenceCode= $pricingPlanReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("pricingPlanReferenceCode", $this->getPricingPlanReferenceCode()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionUpdateProductRequest.php000064400000002342150364332050024644 0ustar00name; } public function setName($name) { $this->name = $name; } public function getDescription() { return $this->description; } public function setDescription($description) { $this->description = $description; } public function getProductReferenceCode() { return $this->productReferenceCode; } public function setProductReferenceCode($productReferenceCode) { $this->productReferenceCode = $productReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("name", $this->getName()) ->add("description", $this->getDescription()) ->add("productReferenceCode", $this->getProductReferenceCode()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionRetrieveProductRequest.php000064400000001103150364332050025201 0ustar00productReferenceCode; } public function setProductReferenceCode($productReferenceCode) { $this->productReferenceCode = $productReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionRetrievePricingPlanRequest.php000064400000001146150364332050025776 0ustar00pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionActivateRequest.php000064400000001446150364332050023625 0ustar00subscriptionReferenceCode = $subscriptionReferenceCode; } public function getSubscriptionReferenceCode() { return $this->subscriptionReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("subscriptionReferenceCode", $this->getSubscriptionReferenceCode()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionUpdatePricingPlanRequest.php000064400000002461150364332050025434 0ustar00name; } public function setName($name) { $this->name = $name; } public function getPricingPlanReferenceCode() { return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getTrialPeriodDays () { return $this->trialPeriodDays ; } public function setTrialPeriodDays ($trialPeriodDays) { $this->trialPeriodDays = $trialPeriodDays; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("pricingPlanReferenceCode", $this->getPricingPlanReferenceCode()) ->add("name", $this->getName()) ->add("trialPeriodDays", $this->getTrialPeriodDays()) ->getObject(); } }src/Iyzipay/Request/Subscription/SubscriptionCardUpdateWithSubscriptionReferenceCodeRequest.php000064400000002127150364332050031672 0ustar00iyzipay-phpcallbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getSubscriptionReferenceCode() { return $this->subscriptionReferenceCode ; } public function setSubscriptionReferenceCode($subscriptionReferenceCode) { $this->subscriptionReferenceCode = $subscriptionReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("subscriptionReferenceCode", $this->getSubscriptionReferenceCode()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionUpgradeRequest.php000064400000004101150364332050023443 0ustar00subscriptionReferenceCode = $subscriptionReferenceCode; } public function getSubscriptionReferenceCode() { return $this->subscriptionReferenceCode; } public function setNewPricingPlanReferenceCode($newPricingPlanReferenceCode) { $this->newPricingPlanReferenceCode = $newPricingPlanReferenceCode; } public function getNewPricingPlanReferenceCode() { return $this->newPricingPlanReferenceCode; } public function setUpgradePeriod($upgradePeriod) { $this->upgradePeriod= $upgradePeriod; } public function getUpgradePeriod() { return $this->upgradePeriod; } public function setUseTrial($useTrial) { $this->useTrial= $useTrial; } public function getUseTrial() { return $this->useTrial; } public function setResetRecurrenceCount($resetRecurrenceCount) { $this->resetRecurrenceCount= $resetRecurrenceCount; } public function getResetRecurrenceCount() { return $this->resetRecurrenceCount; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("subscriptionReferenceCode", $this->getSubscriptionReferenceCode()) ->add("newPricingPlanReferenceCode", $this->getNewPricingPlanReferenceCode()) ->add("upgradePeriod", $this->getUpgradePeriod()) ->add("useTrial", $this->getUseTrial()) ->add("resetRecurrenceCount", $this->getResetRecurrenceCount()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCancelRequest.php000064400000001444150364332050023250 0ustar00subscriptionReferenceCode = $subscriptionReferenceCode; } public function getSubscriptionReferenceCode() { return $this->subscriptionReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("subscriptionReferenceCode", $this->getSubscriptionReferenceCode()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionUpdateCustomerRequest.php000064400000001746150364332050025034 0ustar00customer = new Customer(); } public function getCustomerReferenceCode() { return $this->customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode) { $this->customerReferenceCode = $customerReferenceCode; } public function getCustomer() { return $this->customer; } public function setCustomer(Customer $customer) { $this->customer = $customer; } public function getJsonObject() { return JsonBuilder::fromJsonObject($this->getCustomer()->getJsonObject($this->getLocale(),$this->getConversationId(),$this->getCustomerReferenceCode())) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionRetryRequest.php000064400000001267150364332050023173 0ustar00referenceCode = $referenceCode; } public function getReferenceCode() { return $this->referenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("referenceCode", $this->getReferenceCode()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionRetrieveCustomerRequest.php000064400000001115150364332050025365 0ustar00customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode) { $this->customerReferenceCode = $customerReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionListProductsRequest.php000064400000001177150364332050024525 0ustar00page; } public function setPage($page) { $this->page = $page; } public function getCount() { return $this->count; } public function setCount($count) { $this->count = $count; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionSearchRequest.php000064400000004721150364332050023271 0ustar00page; } public function setPage($page) { return $this->page = $page; } public function getCount() { return $this->count; } public function setCount($count) { return $this->count = $count; } public function getSubscriptionReferenceCode() { return $this->subscriptionReferenceCode; } public function setSubscriptionReferenceCode($subscriptionReferenceCode) { return $this->subscriptionReferenceCode = $subscriptionReferenceCode; } public function getParentReferenceCode() { return $this->parentReferenceCode; } public function setParentReferenceCode($parentReferenceCode) { return $this->parentReferenceCode = $parentReferenceCode; } public function getCustomerReferenceCode() { return $this->customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode) { return $this->customerReferenceCode = $customerReferenceCode; } public function getPricingPlanReferenceCode() { return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { return $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getSubscriptionStatus() { return $this->subscriptionStatus; } public function setSubscriptionStatus($subscriptionStatus) { return $this->subscriptionStatus = $subscriptionStatus; } public function getStartDate() { return $this->startDate; } public function setStartDate($startDate) { return $this->startDate = $startDate; } public function getEndDate() { return $this->endDate; } public function setEndDate($endDate) { return $this->endDate = $endDate; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } } iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCreateCheckoutFormRequest.php000064400000003657150364332050025610 0ustar00customer = new Customer(); } public function getCustomer() { return $this->customer; } public function setCustomer(Customer $customer) { $this->customer = $customer; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getPricingPlanReferenceCode() { return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getSubscriptionInitialStatus() { return $this->subscriptionInitialStatus; } public function setSubscriptionInitialStatus($subscriptionInitialStatus) { $this->subscriptionInitialStatus = $subscriptionInitialStatus; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("pricingPlanReferenceCode", $this->getPricingPlanReferenceCode()) ->add("subscriptionInitialStatus", $this->getSubscriptionInitialStatus()) ->add("customer", $this->getCustomer()->getJsonObject($locale = null,$conversationId= null, $customerReferenceCode = null) ) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCreateProductRequest.php000064400000001576150364332050024635 0ustar00name; } public function setName($name) { $this->name = $name; } public function getDescription() { return $this->description; } public function setDescription($description) { $this->description = $description; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("name", $this->getName()) ->add("description", $this->getDescription()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCreateCustomerRequest.php000064400000001250150364332050025003 0ustar00customer = new Customer(); } public function getCustomer() { return $this->customer; } public function setCustomer(Customer $customer) { $this->customer = $customer; } public function getJsonObject() { return JsonBuilder::fromJsonObject($this->getCustomer()->getJsonObject($this->getLocale(),$this->getConversationId())) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionDeleteProductRequest.php000064400000001375150364332050024631 0ustar00productReferenceCode; } public function setProductReferenceCode($productReferenceCode) { $this->productReferenceCode = $productReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("productReferenceCode", $this->getProductReferenceCode()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/RetrieveSubscriptionCreateCheckoutFormRequest.php000064400000001071150364332050027302 0ustar00checkoutFormToken; } public function setCheckoutFormToken($checkoutFormToken) { $this->checkoutFormToken = $checkoutFormToken; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionListPricingPlanRequest.php000064400000001631150364332050025123 0ustar00page; } public function setProductReferenceCode($productReferenceCode) { $this->productReferenceCode = $productReferenceCode; } public function getProductReferenceCode() { return $this->productReferenceCode; } public function setPage($page) { $this->page = $page; } public function getCount() { return $this->count; } public function setCount($count) { $this->count = $count; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionListCustomersRequest.php000064400000001200150364332050024671 0ustar00page; } public function setPage($page) { $this->page = $page; } public function getCount() { return $this->count; } public function setCount($count) { $this->count = $count; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCreateWithCustomerRequest.php000064400000003044150364332050025642 0ustar00customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode) { $this->customerReferenceCode = $customerReferenceCode; } public function getPricingPlanReferenceCode() { return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getSubscriptionInitialStatus() { return $this->subscriptionInitialStatus; } public function setSubscriptionInitialStatus($subscriptionInitialStatus) { $this->subscriptionInitialStatus = $subscriptionInitialStatus; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("pricingPlanReferenceCode", $this->getPricingPlanReferenceCode()) ->add("subscriptionInitialStatus", $this->getSubscriptionInitialStatus()) ->add("customerReferenceCode", $this->getCustomerReferenceCode()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCardUpdateRequest.php000064400000002026150364332050024074 0ustar00callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getCustomerReferenceCode() { return $this->customerReferenceCode ; } public function setCustomerReferenceCode($customerReferenceCode) { $this->customerReferenceCode = $customerReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("customerReferenceCode", $this->getCustomerReferenceCode()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCreateRequest.php000064400000003644150364332050023272 0ustar00customer = new Customer(); } public function getCustomer() { return $this->customer; } public function setCustomer(Customer $customer) { $this->customer = $customer; } public function getPaymentCard() { return $this->paymentCard; } public function setPaymentCard($paymentCard) { $this->paymentCard = $paymentCard; } public function getPricingPlanReferenceCode() { return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getSubscriptionInitialStatus() { return $this->subscriptionInitialStatus; } public function setSubscriptionInitialStatus($subscriptionInitialStatus) { $this->subscriptionInitialStatus = $subscriptionInitialStatus; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->add("pricingPlanReferenceCode", $this->getPricingPlanReferenceCode()) ->add("subscriptionInitialStatus", $this->getSubscriptionInitialStatus()) ->add("paymentCard", $this->getPaymentCard()) ->add("customer", $this->getCustomer()->getJsonObject($locale = null,$conversationId= null, $customerReferenceCode = null) ) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionDetailsRequest.php000064400000001134150364332050023444 0ustar00subscriptionReferenceCode; } public function setSubscriptionReferenceCode($subscriptionReferenceCode) { $this->subscriptionReferenceCode = $subscriptionReferenceCode; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionCreatePricingPlanRequest.php000064400000006006150364332050025414 0ustar00name; } public function setName($name) { $this->name = $name; } public function getProductReferenceCode() { return $this->productReferenceCode; } public function setProductReferenceCode($productReferenceCode) { $this->productReferenceCode = $productReferenceCode; } public function getPrice() { return $this->price; } public function SetPrice($price) { $this->price = $price; } public function getCurrencyCode() { return $this->currencyCode; } public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } public function getPaymentInterval() { return $this->paymentInterval; } public function setPaymentInterval($paymentInterval) { $this->paymentInterval = $paymentInterval; } public function getPaymentIntervalCount() { return $this->paymentIntervalCount; } public function setPaymentIntervalCount($paymentIntervalCount) { $this->paymentIntervalCount = $paymentIntervalCount; } public function getTrialPeriodDays () { return $this->trialPeriodDays ; } public function setTrialPeriodDays ($trialPeriodDays) { $this->trialPeriodDays = $trialPeriodDays; } public function getPlanPaymentType() { return $this->planPaymentType; } public function setPlanPaymentType($planPaymentType) { $this->planPaymentType = $planPaymentType; } public function setRecurrenceCount($recurrenceCount) { $this->recurrenceCount = $recurrenceCount; } public function getRecurrenceCount() { return $this->recurrenceCount; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("productReferenceCode", $this->getProductReferenceCode()) ->add("name", $this->getName()) ->add("price", $this->getPrice()) ->add("currencyCode", $this->getCurrencyCode()) ->add("paymentInterval", $this->getPaymentInterval()) ->add("paymentIntervalCount", $this->getPaymentIntervalCount()) ->add("trialPeriodDays", $this->getTrialPeriodDays()) ->add("planPaymentType", $this->getPlanPaymentType()) ->add("recurrenceCount", $this->getRecurrenceCount()) ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/CreateCrossBookingRequest.php000064400000003302150364332050020513 0ustar00subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getReason() { return $this->reason; } public function setReason($reason) { $this->reason = $reason; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("subMerchantKey", $this->getSubMerchantKey()) ->addPrice("price", $this->getPrice()) ->add("reason", $this->getReason()) ->add("currency", $this->getCurrency()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("subMerchantKey", $this->getSubMerchantKey()) ->appendPrice("price", $this->getPrice()) ->append("reason", $this->getReason()) ->append("currency", $this->getCurrency()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/ReportingPaymentDetailRequest.php000064400000001205150364332050021417 0ustar00paymentConversationId; } public function setPaymentConversationId($paymentConversationId) { $this->paymentConversationId = $paymentConversationId; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentConversationId", $this->getPaymentConversationId()) ->getObject(); } }iyzipay-php/src/Iyzipay/Request/CreateCheckoutFormInitializeRequest.php000064400000013500150364332050022525 0ustar00price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getBasketId() { return $this->basketId; } public function setBasketId($basketId) { $this->basketId = $basketId; } public function getPaymentGroup() { return $this->paymentGroup; } public function setPaymentGroup($paymentGroup) { $this->paymentGroup = $paymentGroup; } public function getPaymentSource() { return $this->paymentSource; } public function setPaymentSource($paymentSource) { $this->paymentSource = $paymentSource; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getBuyer() { return $this->buyer; } public function setBuyer($buyer) { $this->buyer = $buyer; } public function getShippingAddress() { return $this->shippingAddress; } public function setShippingAddress($shippingAddress) { $this->shippingAddress = $shippingAddress; } public function getBillingAddress() { return $this->billingAddress; } public function setBillingAddress($billingAddress) { $this->billingAddress = $billingAddress; } public function getBasketItems() { return $this->basketItems; } public function setBasketItems($basketItems) { $this->basketItems = $basketItems; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getForceThreeDS() { return $this->forceThreeDS; } public function setForceThreeDS($forceThreeDS) { $this->forceThreeDS = $forceThreeDS; } public function getCardUserKey() { return $this->cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getPosOrderId() { return $this->posOrderId; } public function setPosOrderId($posOrderId) { $this->posOrderId = $posOrderId; } public function setEnabledInstallments($enabledInstallments) { $this->enabledInstallments = $enabledInstallments; } public function getEnabledInstallments() { return $this->enabledInstallments; } public function setDebitCardAllowed($debitCardAllowed) { $this->debitCardAllowed = $debitCardAllowed; } public function getDebitCardAllowed() { return $this->debitCardAllowed; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->addPrice("price", $this->getPrice()) ->add("basketId", $this->getBasketId()) ->add("paymentGroup", $this->getPaymentGroup()) ->add("buyer", $this->getBuyer()) ->add("shippingAddress", $this->getShippingAddress()) ->add("billingAddress", $this->getBillingAddress()) ->addArray("basketItems", $this->getBasketItems()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("paymentSource", $this->getPaymentSource()) ->add("currency", $this->getCurrency()) ->add("posOrderId", $this->getPosOrderId()) ->addPrice("paidPrice", $this->getPaidPrice()) ->add("forceThreeDS", $this->getForceThreeDS()) ->add("cardUserKey", $this->getCardUserKey()) ->addArray("enabledInstallments", $this->getEnabledInstallments()) ->add("debitCardAllowed", $this->getDebitCardAllowed()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->appendPrice("price", $this->getPrice()) ->append("basketId", $this->getBasketId()) ->append("paymentGroup", $this->getPaymentGroup()) ->append("buyer", $this->getBuyer()) ->append("shippingAddress", $this->getShippingAddress()) ->append("billingAddress", $this->getBillingAddress()) ->appendArray("basketItems", $this->getBasketItems()) ->append("callbackUrl", $this->getCallbackUrl()) ->append("paymentSource", $this->getPaymentSource()) ->append("currency", $this->getCurrency()) ->append("posOrderId", $this->getPosOrderId()) ->appendPrice("paidPrice", $this->getPaidPrice()) ->append("forceThreeDS", $this->getForceThreeDS()) ->append("cardUserKey", $this->getCardUserKey()) ->appendArray("enabledInstallments", $this->getEnabledInstallments()) ->append("debitCardAllowed", $this->getDebitCardAllowed()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/UpdateSubMerchantRequest.php000064400000011552150364332050020351 0ustar00name; } public function setName($name) { $this->name = $name; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getAddress() { return $this->address; } public function setAddress($address) { $this->address = $address; } public function getIban() { return $this->iban; } public function setIban($iban) { $this->iban = $iban; } public function getTaxOffice() { return $this->taxOffice; } public function setTaxOffice($taxOffice) { $this->taxOffice = $taxOffice; } public function getContactName() { return $this->contactName; } public function setContactName($contactName) { $this->contactName = $contactName; } public function getContactSurname() { return $this->contactSurname; } public function setContactSurname($contactSurname) { $this->contactSurname = $contactSurname; } public function getLegalCompanyTitle() { return $this->legalCompanyTitle; } public function setLegalCompanyTitle($legalCompanyTitle) { $this->legalCompanyTitle = $legalCompanyTitle; } public function getSwiftCode() { return $this->swiftCode; } public function setSwiftCode($swiftCode) { $this->swiftCode = $swiftCode; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getTaxNumber() { return $this->taxNumber; } public function setTaxNumber($taxNumber) { $this->taxNumber = $taxNumber; } public function getSubMerchantKey() { return $this->subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("name", $this->getName()) ->add("email", $this->getEmail()) ->add("gsmNumber", $this->getGsmNumber()) ->add("address", $this->getAddress()) ->add("iban", $this->getIban()) ->add("taxOffice", $this->getTaxOffice()) ->add("contactName", $this->getContactName()) ->add("contactSurname", $this->getContactSurname()) ->add("legalCompanyTitle", $this->getLegalCompanyTitle()) ->add("swiftCode", $this->getSwiftCode()) ->add("currency", $this->getCurrency()) ->add("subMerchantKey", $this->getSubMerchantKey()) ->add("identityNumber", $this->getIdentityNumber()) ->add("taxNumber", $this->getTaxNumber()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("name", $this->getName()) ->append("email", $this->getEmail()) ->append("gsmNumber", $this->getGsmNumber()) ->append("address", $this->getAddress()) ->append("iban", $this->getIban()) ->append("taxOffice", $this->getTaxOffice()) ->append("contactName", $this->getContactName()) ->append("contactSurname", $this->getContactSurname()) ->append("legalCompanyTitle", $this->getLegalCompanyTitle()) ->append("swiftCode", $this->getSwiftCode()) ->append("currency", $this->getCurrency()) ->append("subMerchantKey", $this->getSubMerchantKey()) ->append("identityNumber", $this->getIdentityNumber()) ->append("taxNumber", $this->getTaxNumber()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateCancelRequest.php000064400000003174150364332050017305 0ustar00ip; } public function setIp($ip) { $this->ip = $ip; } public function getPaymentId() { return $this->paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getReason() { return $this->reason; } public function setReason($reason) { $this->reason = $reason; } public function getDescription() { return $this->description; } public function setDescription($description) { $this->description = $description; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentId", $this->getPaymentId()) ->add("ip", $this->getIp()) ->add("reason", $this->getReason()) ->add("description", $this->getDescription()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentId", $this->getPaymentId()) ->append("ip", $this->getIp()) ->append("reason", $this->getReason()) ->append("description", $this->getDescription()) ->getRequestString(); } } iyzipay-php/src/Iyzipay/Request/CreateBasicBkmInitializeRequest.php000064400000006072150364332050021615 0ustar00connectorName; } public function setConnectorName($connectorName) { $this->connectorName = $connectorName; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getBuyerEmail() { return $this->buyerEmail; } public function setBuyerEmail($buyerEmail) { $this->buyerEmail = $buyerEmail; } public function getBuyerId() { return $this->buyerId; } public function setBuyerId($buyerId) { $this->buyerId = $buyerId; } public function getBuyerIp() { return $this->buyerIp; } public function setBuyerIp($buyerIp) { $this->buyerIp = $buyerIp; } public function getPosOrderId() { return $this->posOrderId; } public function setPosOrderId($posOrderId) { $this->posOrderId = $posOrderId; } public function getInstallmentDetails() { return $this->installmentDetails; } public function setInstallmentDetails($installmentDetails) { $this->installmentDetails = $installmentDetails; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("connectorName", $this->getConnectorName()) ->addPrice("price", $this->getPrice()) ->add("callbackUrl", $this->getCallbackUrl()) ->add("buyerEmail", $this->getBuyerEmail()) ->add("buyerId", $this->getBuyerId()) ->add("buyerIp", $this->getBuyerIp()) ->add("posOrderId", $this->getPosOrderId()) ->addArray("installmentDetails", $this->getInstallmentDetails()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("connectorName", $this->getConnectorName()) ->appendPrice("price", $this->getPrice()) ->append("callbackUrl", $this->getCallbackUrl()) ->append("buyerEmail", $this->getBuyerEmail()) ->append("buyerId", $this->getBuyerId()) ->append("buyerIp", $this->getBuyerIp()) ->append("posOrderId", $this->getPosOrderId()) ->appendArray("installmentDetails", $this->getInstallmentDetails()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateRefundToBalanceRequest.php000064400000002200150364332050021101 0ustar00paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getCallbackUrl() { return $this->callbackUrl; } public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("paymentId", $this->getPaymentId()) ->add("callbackUrl", $this->getCallbackUrl()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("paymentId", $this->getPaymentId()) ->append("callbackUrl", $this->getCallbackUrl()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/CreateApmInitializeRequest.php000064400000015252150364332050020657 0ustar00price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getPaymentChannel() { return $this->paymentChannel; } public function setPaymentChannel($paymentChannel) { $this->paymentChannel = $paymentChannel; } public function getPaymentGroup() { return $this->paymentGroup; } public function setPaymentGroup($paymentGroup) { $this->paymentGroup = $paymentGroup; } public function getPaymentSource() { return $this->paymentSource; } public function setPaymentSource($paymentSource) { $this->paymentSource = $paymentSource; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getMerchantOrderId() { return $this->merchantOrderId; } public function setMerchantOrderId($merchantOrderId) { $this->merchantOrderId = $merchantOrderId; } public function getCountryCode() { return $this->countryCode; } public function setCountryCode($countryCode) { $this->countryCode = $countryCode; } public function getAccountHolderName() { return $this->accountHolderName; } public function setAccountHolderName($accountHolderName) { $this->accountHolderName = $accountHolderName; } public function getMerchantCallbackUrl() { return $this->merchantCallbackUrl; } public function setMerchantCallbackUrl($merchantCallbackUrl) { $this->merchantCallbackUrl = $merchantCallbackUrl; } public function getMerchantErrorUrl() { return $this->merchantErrorUrl; } public function setMerchantErrorUrl($merchantErrorUrl) { $this->merchantErrorUrl = $merchantErrorUrl; } public function getMerchantNotificationUrl() { return $this->merchantNotificationUrl; } public function setMerchantNotificationUrl($merchantNotificationUrl) { $this->merchantNotificationUrl = $merchantNotificationUrl; } public function getApmType() { return $this->apmType; } public function setApmType($apmType) { $this->apmType = $apmType; } public function getBasketId() { return $this->basketId; } public function setBasketId($basketId) { $this->basketId = $basketId; } public function getBuyer() { return $this->buyer; } public function setBuyer($buyer) { $this->buyer = $buyer; } public function getShippingAddress() { return $this->shippingAddress; } public function setShippingAddress($shippingAddress) { $this->shippingAddress = $shippingAddress; } public function getBillingAddress() { return $this->billingAddress; } public function setBillingAddress($billingAddress) { $this->billingAddress = $billingAddress; } public function getBasketItems() { return $this->basketItems; } public function setBasketItems($basketItems) { $this->basketItems = $basketItems; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->addPrice("price", $this->getPrice()) ->addPrice("paidPrice", $this->getPaidPrice()) ->add("paymentChannel", $this->getPaymentChannel()) ->add("paymentGroup", $this->getPaymentGroup()) ->add("paymentSource", $this->getPaymentSource()) ->add("currency", $this->getCurrency()) ->add("merchantOrderId", $this->getMerchantOrderId()) ->add("countryCode", $this->getCountryCode()) ->add("accountHolderName", $this->getAccountHolderName()) ->add("merchantCallbackUrl", $this->getMerchantCallbackUrl()) ->add("merchantErrorUrl", $this->getMerchantErrorUrl()) ->add("merchantNotificationUrl", $this->getMerchantNotificationUrl()) ->add("apmType", $this->getApmType()) ->add("basketId", $this->getBasketId()) ->add("buyer", $this->getBuyer()) ->add("shippingAddress", $this->getShippingAddress()) ->add("billingAddress", $this->getBillingAddress()) ->addArray("basketItems", $this->getBasketItems()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->appendPrice("price", $this->getPrice()) ->appendPrice("paidPrice", $this->getPaidPrice()) ->append("paymentChannel", $this->getPaymentChannel()) ->append("paymentGroup", $this->getPaymentGroup()) ->append("paymentSource", $this->getPaymentSource()) ->append("currency", $this->getCurrency()) ->append("merchantOrderId", $this->getMerchantOrderId()) ->append("countryCode", $this->getCountryCode()) ->append("accountHolderName", $this->getAccountHolderName()) ->append("merchantCallbackUrl", $this->getMerchantCallbackUrl()) ->append("merchantErrorUrl", $this->getMerchantErrorUrl()) ->append("merchantNotificationUrl", $this->getMerchantNotificationUrl()) ->append("apmType", $this->getApmType()) ->append("basketId", $this->getBasketId()) ->append("buyer", $this->getBuyer()) ->append("shippingAddress", $this->getShippingAddress()) ->append("billingAddress", $this->getBillingAddress()) ->appendArray("basketItems", $this->getBasketItems()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Request/RetrieveTransactionsRequest.php000064400000001371150364332050021147 0ustar00date; } public function setDate($date) { $this->date = $date; } public function getJsonObject() { return JsonBuilder::fromJsonObject(parent::getJsonObject()) ->add("date", $this->getDate()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->appendSuper(parent::toPKIRequestString()) ->append("date", $this->getDate()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Options.php000064400000001147150364332050013424 0ustar00apiKey; } public function setApiKey($apiKey) { $this->apiKey = $apiKey; } public function getSecretKey() { return $this->secretKey; } public function setSecretKey($secretKey) { $this->secretKey = $secretKey; } public function getBaseUrl() { return $this->baseUrl; } public function setBaseUrl($baseUrl) { $this->baseUrl = $baseUrl; } }iyzipay-php/src/Iyzipay/RequestFormatter.php000064400000001264150364332050015305 0ustar00getJsonObject()); } }iyzipay-php/src/Iyzipay/Request.php000064400000001675150364332050013427 0ustar00locale; } public function setLocale($locale) { $this->locale = $locale; } public function getConversationId() { return $this->conversationId; } public function setConversationId($conversationId) { $this->conversationId = $conversationId; } public function getJsonObject() { return JsonBuilder::create() ->add("locale", $this->getLocale()) ->add("conversationId", $this->getConversationId()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("locale", $this->getLocale()) ->append("conversationId", $this->getConversationId()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/Mapper/RefundToBalanceResourceMapper.php000064400000001703150364332050022124 0ustar00token)) { $refundToBalanceResource->setToken($jsonObject->token); } if (isset($jsonObject->url)) { $refundToBalanceResource->setUrl($jsonObject->url); } return $refundToBalanceResource; } public function mapRefundToBalanceResource(RefundToBalanceResource $refundToBalanceResource) { return $this->mapRefundToBalanceResourceFrom($refundToBalanceResource, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicPaymentResourceMapper.php000064400000005455150364332050021517 0ustar00price)) { $payment->setPrice($jsonObject->price); } if (isset($jsonObject->paidPrice)) { $payment->setPaidPrice($jsonObject->paidPrice); } if (isset($jsonObject->installment)) { $payment->setInstallment($jsonObject->installment); } if (isset($jsonObject->paymentId)) { $payment->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->merchantCommissionRate)) { $payment->setMerchantCommissionRate($jsonObject->merchantCommissionRate); } if (isset($jsonObject->merchantCommissionRateAmount)) { $payment->setMerchantCommissionRateAmount($jsonObject->merchantCommissionRateAmount); } if (isset($jsonObject->iyziCommissionFee)) { $payment->setIyziCommissionFee($jsonObject->iyziCommissionFee); } if (isset($jsonObject->cardType)) { $payment->setCardType($jsonObject->cardType); } if (isset($jsonObject->cardAssociation)) { $payment->setCardAssociation($jsonObject->cardAssociation); } if (isset($jsonObject->cardFamily)) { $payment->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->cardToken)) { $payment->setCardToken($jsonObject->cardToken); } if (isset($jsonObject->cardUserKey)) { $payment->setCardUserKey($jsonObject->cardUserKey); } if (isset($jsonObject->binNumber)) { $payment->setBinNumber($jsonObject->binNumber); } if (isset($jsonObject->paymentTransactionId)) { $payment->setPaymentTransactionId($jsonObject->paymentTransactionId); } if (isset($jsonObject->authCode)) { $payment->setAuthCode($jsonObject->authCode); } if (isset($jsonObject->connectorName)) { $payment->setConnectorName($jsonObject->connectorName); } if (isset($jsonObject->currency)) { $payment->setCurrency($jsonObject->currency); } if (isset($jsonObject->phase)) { $payment->setPhase($jsonObject->phase); } return $payment; } public function mapBasicPaymentResource(BasicPaymentResource $payment) { return $this->mapBasicPaymentResourceFrom($payment, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/PaymentPreAuthMapper.php000064400000001153150364332050020325 0ustar00mapPaymentPreAuthFrom($paymentPreAuth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/PayWithIyzicoInitializeResourceMapper.php000064400000002353150364332050023730 0ustar00token)) { $initialize->setToken($jsonObject->token); } if (isset($jsonObject->payWithIyzicoContent)) { $initialize->setPayWithIyzicoContent($jsonObject->payWithIyzicoContent); } if (isset($jsonObject->tokenExpireTime)) { $initialize->setTokenExpireTime($jsonObject->tokenExpireTime); } if (isset($jsonObject->payWithIyzicoPageUrl)) { $initialize->setPaymentPageUrl($jsonObject->payWithIyzicoPageUrl); } return $initialize; } public function mapPayWithIyzicoInitializeResource(PayWithIyzicoInitializeResource $initialize) { return $this->mapPayWithIyzicoInitializeResourceFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CheckoutFormInitializePreAuthMapper.php000064400000001355150364332050023327 0ustar00mapCheckoutFormInitializePreAuthFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicThreedsInitializeMapper.php000064400000001452150364332050022003 0ustar00threeDSHtmlContent)) { $initialize->setHtmlContent(base64_decode($jsonObject->threeDSHtmlContent)); } return $initialize; } public function mapBasicThreedsInitialize(BasicThreedsInitialize $initialize) { return $this->mapBasicThreedsInitializeFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/PaymentItemMapper.php000064400000012376150364332050017664 0ustar00 $itemTransaction) { $paymentItem = new PaymentItem(); if (isset($itemTransaction->itemId)) { $paymentItem->setItemId($itemTransaction->itemId); } if (isset($itemTransaction->paymentTransactionId)) { $paymentItem->setPaymentTransactionId($itemTransaction->paymentTransactionId); } if (isset($itemTransaction->transactionStatus)) { $paymentItem->setTransactionStatus($itemTransaction->transactionStatus); } if (isset($itemTransaction->price)) { $paymentItem->setPrice($itemTransaction->price); } if (isset($itemTransaction->paidPrice)) { $paymentItem->setPaidPrice($itemTransaction->paidPrice); } if (isset($itemTransaction->merchantCommissionRate)) { $paymentItem->setMerchantCommissionRate($itemTransaction->merchantCommissionRate); } if (isset($itemTransaction->merchantCommissionRateAmount)) { $paymentItem->setMerchantCommissionRateAmount($itemTransaction->merchantCommissionRateAmount); } if (isset($itemTransaction->iyziCommissionRateAmount)) { $paymentItem->setIyziCommissionRateAmount($itemTransaction->iyziCommissionRateAmount); } if (isset($itemTransaction->iyziCommissionFee)) { $paymentItem->setIyziCommissionFee($itemTransaction->iyziCommissionFee); } if (isset($itemTransaction->blockageRate)) { $paymentItem->setBlockageRate($itemTransaction->blockageRate); } if (isset($itemTransaction->blockageRateAmountMerchant)) { $paymentItem->setBlockageRateAmountMerchant($itemTransaction->blockageRateAmountMerchant); } if (isset($itemTransaction->blockageRateAmountSubMerchant)) { $paymentItem->setBlockageRateAmountSubMerchant($itemTransaction->blockageRateAmountSubMerchant); } if (isset($itemTransaction->blockageResolvedDate)) { $paymentItem->setBlockageResolvedDate($itemTransaction->blockageResolvedDate); } if (isset($itemTransaction->subMerchantKey)) { $paymentItem->setSubMerchantKey($itemTransaction->subMerchantKey); } if (isset($itemTransaction->subMerchantPrice)) { $paymentItem->setSubMerchantPrice($itemTransaction->subMerchantPrice); } if (isset($itemTransaction->subMerchantPayoutRate)) { $paymentItem->setSubMerchantPayoutRate($itemTransaction->subMerchantPayoutRate); } if (isset($itemTransaction->subMerchantPayoutAmount)) { $paymentItem->setSubMerchantPayoutAmount($itemTransaction->subMerchantPayoutAmount); } if (isset($itemTransaction->merchantPayoutAmount)) { $paymentItem->setMerchantPayoutAmount($itemTransaction->merchantPayoutAmount); } if (isset($itemTransaction->convertedPayout)) { $paymentItem->setConvertedPayout($this->mapConvertedPayout($itemTransaction->convertedPayout)); } $paymentItems[$index] = $paymentItem; } return $paymentItems; } private function mapConvertedPayout($payout) { $convertedPayout = new ConvertedPayout(); if (isset($payout->paidPrice)) { $convertedPayout->setPaidPrice($payout->paidPrice); } if (isset($payout->iyziCommissionRateAmount)) { $convertedPayout->setIyziCommissionRateAmount($payout->iyziCommissionRateAmount); } if (isset($payout->iyziCommissionFee)) { $convertedPayout->setIyziCommissionFee($payout->iyziCommissionFee); } if (isset($payout->blockageRateAmountMerchant)) { $convertedPayout->setBlockageRateAmountMerchant($payout->blockageRateAmountMerchant); } if (isset($payout->blockageRateAmountSubMerchant)) { $convertedPayout->setBlockageRateAmountSubMerchant($payout->blockageRateAmountSubMerchant); } if (isset($payout->subMerchantPayoutAmount)) { $convertedPayout->setSubMerchantPayoutAmount($payout->subMerchantPayoutAmount); } if (isset($payout->merchantPayoutAmount)) { $convertedPayout->setMerchantPayoutAmount($payout->merchantPayoutAmount); } if (isset($payout->iyziConversionRate)) { $convertedPayout->setIyziConversionRate($payout->iyziConversionRate); } if (isset($payout->iyziConversionRateAmount)) { $convertedPayout->setIyziConversionRateAmount($payout->iyziConversionRateAmount); } if (isset($payout->currency)) { $convertedPayout->setCurrency($payout->currency); } return $convertedPayout; } }iyzipay-php/src/Iyzipay/Model/Mapper/InstallmentHtmlMapper.php000064400000001363150364332050020541 0ustar00htmlContent)) { $installmentHtml->setHtmlContent($jsonObject->htmlContent); } return $installmentHtml; } public function mapInstallmentHtml(InstallmentHtml $installmentHtml) { return $this->mapInstallmentHtmlFrom($installmentHtml, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CheckoutFormInitializeResourceMapper.php000064400000002324150364332050023543 0ustar00token)) { $initialize->setToken($jsonObject->token); } if (isset($jsonObject->checkoutFormContent)) { $initialize->setCheckoutFormContent($jsonObject->checkoutFormContent); } if (isset($jsonObject->tokenExpireTime)) { $initialize->setTokenExpireTime($jsonObject->tokenExpireTime); } if (isset($jsonObject->paymentPageUrl)) { $initialize->setPaymentPageUrl($jsonObject->paymentPageUrl); } return $initialize; } public function mapCheckoutFormInitializeResource(CheckoutFormInitializeResource $initialize) { return $this->mapCheckoutFormInitializeResourceFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/PayoutCompletedTransactionListMapper.php000064400000004313150364332050023600 0ustar00payoutCompletedTransactions)) { $transactionList->setPayoutCompletedTransactions($this->mapPayoutCompletedTransactions($jsonObject->payoutCompletedTransactions)); } return $transactionList; } public function mapPayoutCompletedTransactionList(PayoutCompletedTransactionList $transactionList) { return $this->mapPayoutCompletedTransactionListFrom($transactionList, $this->jsonObject); } private function mapPayoutCompletedTransactions($payoutCompletedTransactions) { $transactions = array(); foreach ($payoutCompletedTransactions as $index => $payoutCompletedTransaction) { $transaction = new PayoutCompletedTransaction(); if (isset($payoutCompletedTransaction->paymentTransactionId)) { $transaction->setPaymentTransactionId($payoutCompletedTransaction->paymentTransactionId); } if (isset($payoutCompletedTransaction->payoutAmount)) { $transaction->setPayoutAmount($payoutCompletedTransaction->payoutAmount); } if (isset($payoutCompletedTransaction->payoutType)) { $transaction->setPayoutType($payoutCompletedTransaction->payoutType); } if (isset($payoutCompletedTransaction->subMerchantKey)) { $transaction->setSubMerchantKey($payoutCompletedTransaction->subMerchantKey); } if (isset($payoutCompletedTransaction->currency)) { $transaction->setCurrency($payoutCompletedTransaction->currency); } $transactions[$index] = $transaction; } return $transactions; } }iyzipay-php/src/Iyzipay/Model/Mapper/SubMerchantMapper.php000064400000004774150364332050017646 0ustar00name)) { $subMerchant->setName($jsonObject->name); } if (isset($jsonObject->email)) { $subMerchant->setEmail($jsonObject->email); } if (isset($jsonObject->gsmNumber)) { $subMerchant->setGsmNumber($jsonObject->gsmNumber); } if (isset($jsonObject->address)) { $subMerchant->setAddress($jsonObject->address); } if (isset($jsonObject->iban)) { $subMerchant->setIban($jsonObject->iban); } if (isset($jsonObject->taxOffice)) { $subMerchant->setTaxOffice($jsonObject->taxOffice); } if (isset($jsonObject->contactName)) { $subMerchant->setContactName($jsonObject->contactName); } if (isset($jsonObject->contactSurname)) { $subMerchant->setContactSurname($jsonObject->contactSurname); } if (isset($jsonObject->legalCompanyTitle)) { $subMerchant->setLegalCompanyTitle($jsonObject->legalCompanyTitle); } if (isset($jsonObject->subMerchantExternalId)) { $subMerchant->setSubMerchantExternalId($jsonObject->subMerchantExternalId); } if (isset($jsonObject->identityNumber)) { $subMerchant->setIdentityNumber($jsonObject->identityNumber); } if (isset($jsonObject->taxNumber)) { $subMerchant->setTaxNumber($jsonObject->taxNumber); } if (isset($jsonObject->subMerchantType)) { $subMerchant->setSubMerchantType($jsonObject->subMerchantType); } if (isset($jsonObject->subMerchantKey)) { $subMerchant->setSubMerchantKey($jsonObject->subMerchantKey); } if (isset($jsonObject->swiftCode)) { $subMerchant->setSwiftCode($jsonObject->swiftCode); } if (isset($jsonObject->currency)) { $subMerchant->setCurrency($jsonObject->currency); } return $subMerchant; } public function mapSubMerchant(SubMerchant $subMerchant) { return $this->mapSubMerchantFrom($subMerchant, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ThreedsInitializePreAuthMapper.php000064400000001545150364332050022335 0ustar00threeDSHtmlContent)) { $initializePreAuth->setHtmlContent(base64_decode($jsonObject->threeDSHtmlContent)); } return $initializePreAuth; } public function mapThreedsInitializePreAuth(ThreedsInitializePreAuth $initializePreAuth) { return $this->mapThreedsInitializePreAuthFrom($initializePreAuth, $this->jsonObject); } } iyzipay-php/src/Iyzipay/Model/Mapper/ApmResourceMapper.php000064400000006715150364332050017655 0ustar00redirectUrl)) { $apmResource->setRedirectUrl($jsonObject->redirectUrl); } if (isset($jsonObject->price)) { $apmResource->setPrice($jsonObject->price); } if (isset($jsonObject->paidPrice)) { $apmResource->setPaidPrice($jsonObject->paidPrice); } if (isset($jsonObject->paymentId)) { $apmResource->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->merchantCommissionRate)) { $apmResource->setMerchantCommissionRate($jsonObject->merchantCommissionRate); } if (isset($jsonObject->merchantCommissionRateAmount)) { $apmResource->setMerchantCommissionRateAmount($jsonObject->merchantCommissionRateAmount); } if (isset($jsonObject->iyziCommissionRateAmount)) { $apmResource->setIyziCommissionRateAmount($jsonObject->iyziCommissionRateAmount); } if (isset($jsonObject->iyziCommissionFee)) { $apmResource->setIyziCommissionFee($jsonObject->iyziCommissionFee); } if (isset($jsonObject->basketId)) { $apmResource->setBasketId($jsonObject->basketId); } if (isset($jsonObject->currency)) { $apmResource->setCurrency($jsonObject->currency); } if (isset($jsonObject->itemTransactions)) { $apmResource->setPaymentItems(PaymentItemMapper::create()->mapPaymentItems($jsonObject->itemTransactions)); } if (isset($jsonObject->phase)) { $apmResource->setPhase($jsonObject->phase); } if (isset($jsonObject->accountHolderName)) { $apmResource->setAccountHolderName($jsonObject->accountHolderName); } if (isset($jsonObject->accountNumber)) { $apmResource->setAccountNumber($jsonObject->accountNumber); } if (isset($jsonObject->bankName)) { $apmResource->setBankName($jsonObject->bankName); } if (isset($jsonObject->bankCode)) { $apmResource->setBankCode($jsonObject->bankCode); } if (isset($jsonObject->bic)) { $apmResource->setBic($jsonObject->bic); } if (isset($jsonObject->paymentPurpose)) { $apmResource->setPaymentPurpose($jsonObject->paymentPurpose); } if (isset($jsonObject->iban)) { $apmResource->setIban($jsonObject->iban); } if (isset($jsonObject->countryCode)) { $apmResource->setCountryCode($jsonObject->countryCode); } if (isset($jsonObject->apm)) { $apmResource->setApm($jsonObject->apm); } if (isset($jsonObject->mobilePhone)) { $apmResource->setMobilePhone($jsonObject->mobilePhone); } if (isset($jsonObject->paymentStatus)) { $apmResource->setPaymentStatus($jsonObject->paymentStatus); } return $apmResource; } public function mapApmResource(ApmResource $apmResource) { return $this->mapApmResourceFrom($apmResource, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/PaymentPostAuthMapper.php000064400000001125150364332050020523 0ustar00mapPaymentPostAuthFrom($postAuth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CancelMapper.php000064400000002061150364332050016603 0ustar00paymentId)) { $cancel->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->price)) { $cancel->setPrice($jsonObject->price); } if (isset($jsonObject->currency)) { $cancel->setCurrency($jsonObject->currency); } if (isset($jsonObject->connectorName)) { $cancel->setConnectorName($jsonObject->connectorName); } if (isset($jsonObject->authCode)) { $cancel->setAuthCode($jsonObject->authCode); } return $cancel; } public function mapCancel(Cancel $cancel) { return $this->mapCancelFrom($cancel, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicPaymentPostAuthMapper.php000064400000001207150364332050021466 0ustar00mapBasicPaymentPostAuthFrom($postAuth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/SettlementToBalanceMapper.php000064400000001305150364332050021313 0ustar00mapSettlementToBalanceFrom($settlementToBalance, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkDeleteProductResourceMapper.php000064400000001351150364332050025157 0ustar00mapIyziLinkDeleteProductResourceFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkDeleteProductMapper.php000064400000001251150364332050023446 0ustar00mapIyziLinkDeleteProductFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkRetrieveAllProductMapper.php000064400000001330150364332050024460 0ustar00mapIyziLinkRetriveAllProductFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkRetrieveAllProductResourceMapper.php000064400000002301150364332050026167 0ustar00data->listingReviewed)) { $create->setListingReviewed($jsonObject->data->listingReviewed); } if (isset($jsonObject->data->totalCount)) { $create->setTotalCount($jsonObject->data->totalCount); } if (isset($jsonObject->data->currentPage)) { $create->setCurrentPage($jsonObject->data->currentPage); } if (isset($jsonObject->data->pageCount)) { $create->setPageCount($jsonObject->data->pageCount); } if (isset($jsonObject->data->items)) { $create->setItems($jsonObject->data->items); } return $create; } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkRetrieveProductMapper.php000064400000001436150364332050024036 0ustar00data)) { $create->setItem($jsonObject->data); } return $create; } public function mapIyziLinkRetriveProduct(IyziLinkRetrieveProduct $create) { return $this->mapIyziLinkRetriveProductFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkSaveProductMapper.php000064400000001226150364332050023144 0ustar00mapIyziLinkSaveProductFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkRetrieveProductResourceMapper.php000064400000001222150364332050025537 0ustar00data)) { $create->setItem($jsonObject->data); } return $create; } }iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkSaveProductResourceMapper.php000064400000001572150364332050024660 0ustar00data->token)) { $create->setToken($jsonObject->data->token); } if (isset($jsonObject->data->url)) { $create->setUrl($jsonObject->data->url); } if (isset($jsonObject->data->imageUrl)) { $create->setImageUrl($jsonObject->data->imageUrl); } return $create; } }iyzipay-php/src/Iyzipay/Model/Mapper/ThreedsPaymentMapper.php000064400000001071150364332050020352 0ustar00mapThreedsPaymentFrom($auth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BinNumberMapper.php000064400000002546150364332050017307 0ustar00binNumber)) { $binNumber->setBinNumber($jsonObject->binNumber); } if (isset($jsonObject->cardType)) { $binNumber->setCardType($jsonObject->cardType); } if (isset($jsonObject->cardAssociation)) { $binNumber->setCardAssociation($jsonObject->cardAssociation); } if (isset($jsonObject->cardFamily)) { $binNumber->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->bankName)) { $binNumber->setBankName($jsonObject->bankName); } if (isset($jsonObject->bankCode)) { $binNumber->setBankCode($jsonObject->bankCode); } if (isset($jsonObject->commercial)) { $binNumber->setCommercial($jsonObject->commercial); } return $binNumber; } public function mapBinNumber(BinNumber $binNumber) { return $this->mapBinNumberFrom($binNumber, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BkmMapper.php000064400000001274150364332050016134 0ustar00token)) { $auth->setToken($jsonObject->token); } if (isset($jsonObject->callbackUrl)) { $auth->setCallbackUrl($jsonObject->callbackUrl); } return $auth; } public function mapBkm(Bkm $auth) { return $this->mapBkmFrom($auth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/AddressMapper.php000064400000001564150364332050017012 0ustar00address)) { $address->setAddress($jsonObject->address); } if (isset($jsonObject->zipCode)) { $address->setZipCode($jsonObject->zipCode); } if (isset($jsonObject->contactName)) { $address->setContactName($jsonObject->contactName); } if (isset($jsonObject->city)) { $address->setCity($jsonObject->city); } if (isset($jsonObject->country)) { $address->setCountry($jsonObject->country); } return $address; } }iyzipay-php/src/Iyzipay/Model/Mapper/RefundResourceMapper.php000064400000002534150364332050020356 0ustar00paymentId)) { $refundResource->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->paymentTransactionId)) { $refundResource->setPaymentTransactionId($jsonObject->paymentTransactionId); } if (isset($jsonObject->price)) { $refundResource->setPrice($jsonObject->price); } if (isset($jsonObject->currency)) { $refundResource->setCurrency($jsonObject->currency); } if (isset($jsonObject->connectorName)) { $refundResource->setConnectorName($jsonObject->connectorName); } if (isset($jsonObject->authCode)) { $refundResource->setAuthCode($jsonObject->authCode); } return $refundResource; } public function mapRefundResource(RefundResource $refundResource) { return $this->mapRefundResourceFrom($refundResource, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicThreedsInitializePreAuthMapper.php000064400000001614150364332050023274 0ustar00threeDSHtmlContent)) { $initializePreAuth->setHtmlContent(base64_decode($jsonObject->threeDSHtmlContent)); } return $initializePreAuth; } public function mapBasicThreedsInitializePreAuth(BasicThreedsInitializePreAuth $initializePreAuth) { return $this->mapBasicThreedsInitializePreAuthFrom($initializePreAuth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/PaymentMapper.php000064400000001020150364332050017025 0ustar00mapPaymentFrom($payment, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BouncedBankTransferListMapper.php000064400000004000150364332050022125 0ustar00bouncedRows)) { $transferList->setBankTransfers($this->mapBankTransfers($jsonObject->bouncedRows)); } return $transferList; } public function mapBouncedBankTransferList(BouncedBankTransferList $transferList) { return $this->mapBouncedBankTransferListFrom($transferList, $this->jsonObject); } private function mapBankTransfers($bouncedRows) { $bankTransfers = array(); foreach ($bouncedRows as $index => $bouncedRow) { $bankTransfer = new BankTransfer(); if (isset($bouncedRow->subMerchantKey)) { $bankTransfer->setSubMerchantKey($bouncedRow->subMerchantKey); } if (isset($bouncedRow->iban)) { $bankTransfer->setIban($bouncedRow->iban); } if (isset($bouncedRow->contactName)) { $bankTransfer->setContactName($bouncedRow->contactName); } if (isset($bouncedRow->contactSurname)) { $bankTransfer->setContactSurname($bouncedRow->contactSurname); } if (isset($bouncedRow->legalCompanyTitle)) { $bankTransfer->setLegalCompanyTitle($bouncedRow->legalCompanyTitle); } if (isset($bouncedRow->marketplaceSubmerchantType)) { $bankTransfer->setMarketplaceSubMerchantType($bouncedRow->marketplaceSubmerchantType); } $bankTransfers[$index] = $bankTransfer; } return $bankTransfers; } }iyzipay-php/src/Iyzipay/Model/Mapper/CardMapper.php000064400000003524150364332050016274 0ustar00externalId)) { $card->setExternalId($jsonObject->externalId); } if (isset($jsonObject->email)) { $card->setEmail($jsonObject->email); } if (isset($jsonObject->cardUserKey)) { $card->setCardUserKey($jsonObject->cardUserKey); } if (isset($jsonObject->cardToken)) { $card->setCardToken($jsonObject->cardToken); } if (isset($jsonObject->cardAlias)) { $card->setCardAlias($jsonObject->cardAlias); } if (isset($jsonObject->binNumber)) { $card->setBinNumber($jsonObject->binNumber); } if (isset($jsonObject->lastFourDigits)) { $card->setLastFourDigits($jsonObject->lastFourDigits); } if (isset($jsonObject->cardType)) { $card->setCardType($jsonObject->cardType); } if (isset($jsonObject->cardAssociation)) { $card->setCardAssociation($jsonObject->cardAssociation); } if (isset($jsonObject->cardFamily)) { $card->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->cardBankCode)) { $card->setCardBankCode($jsonObject->cardBankCode); } if (isset($jsonObject->cardBankName)) { $card->setCardBankName($jsonObject->cardBankName); } return $card; } public function mapCard(Card $card) { return $this->mapCardFrom($card, $this->jsonObject); } } iyzipay-php/src/Iyzipay/Model/Mapper/UCSInitializeResourceMapper.php000064400000003221150364332050021601 0ustar00ucsToken)) { $initialize->setUcsToken($jsonObject->ucsToken); } if (isset($jsonObject->buyerProtectedConsumer)) { $initialize->setBuyerProtectedConsumer($jsonObject->buyerProtectedConsumer); } if (isset($jsonObject->buyerProtectedMerchant)) { $initialize->setBuyerProtectedMerchant($jsonObject->buyerProtectedMerchant); } if (isset($jsonObject->gsmNumber)) { $initialize->setGsmNumber($jsonObject->gsmNumber); } if (isset($jsonObject->maskedGsmNumber)) { $initialize->setMaskedGsmNumber($jsonObject->maskedGsmNumber); } if (isset($jsonObject->merchantName)) { $initialize->setMerchantName($jsonObject->merchantName); } if (isset($jsonObject->script)) { $initialize->setScript($jsonObject->script); } if (isset($jsonObject->scriptType)) { $initialize->setScriptType($jsonObject->scriptType); } return $initialize; } public function mapUCSInitializeResource(UCSInitializeResource $initialize) { return $this->mapUCSInitializeResourceFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/PayWithIyzicoInitializeMapper.php000064400000001277150364332050022224 0ustar00mapPayWithIyzicoInitializeFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CrossBookingToSubMerchantMapper.php000064400000001231150364332050022455 0ustar00mapCrossBookingToSubMerchantFrom($booking, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicPaymentMapper.php000064400000001102150364332050017770 0ustar00mapBasicPaymentFrom($payment, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/SubMerchantPaymentItemMapper.php000064400000001264150364332050022012 0ustar00mapSubMerchantPaymentItemFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/RefundToBalanceMapper.php000064400000001211150364332050020406 0ustar00mapRefundToBalanceFrom($refundToBalance, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ReportingPaymentDetailMapper.php000064400000001242150364332050022050 0ustar00mapReportingPaymentDetailFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/InstallmentInfoMapper.php000064400000006664150364332050020541 0ustar00installmentDetails)) { $installment->setInstallmentDetails($this->mapInstallmentDetails($jsonObject->installmentDetails)); } return $installment; } public function mapInstallmentInfo(InstallmentInfo $installment) { return $this->mapInstallmentInfoFrom($installment, $this->jsonObject); } private function mapInstallmentDetails($installmentDetails) { $details = array(); foreach ($installmentDetails as $index => $installmentDetail) { $detail = new InstallmentDetail(); if (isset($installmentDetail->binNumber)) { $detail->setBinNumber($installmentDetail->binNumber); } if (isset($installmentDetail->price)) { $detail->setPrice($installmentDetail->price); } if (isset($installmentDetail->cardType)) { $detail->setCardType($installmentDetail->cardType); } if (isset($installmentDetail->cardAssociation)) { $detail->setCardAssociation($installmentDetail->cardAssociation); } if (isset($installmentDetail->cardFamilyName)) { $detail->setCardFamilyName($installmentDetail->cardFamilyName); } if (isset($installmentDetail->force3ds)) { $detail->setForce3ds($installmentDetail->force3ds); } if (isset($installmentDetail->bankCode)) { $detail->setBankCode($installmentDetail->bankCode); } if (isset($installmentDetail->bankName)) { $detail->setBankName($installmentDetail->bankName); } if (isset($installmentDetail->forceCvc)) { $detail->setForceCvc($installmentDetail->forceCvc); } if (isset($installmentDetail->commercial)) { $detail->setCommercial($installmentDetail->commercial); } if (isset($installmentDetail->installmentPrices)) { $detail->setInstallmentPrices($this->mapInstallmentPrices($installmentDetail->installmentPrices)); } $details[$index] = $detail; } return $details; } private function mapInstallmentPrices($installmentPrices) { $prices = array(); foreach ($installmentPrices as $index => $installmentPrice) { $price = new InstallmentPrice(); if (isset($installmentPrice->installmentPrice)) { $price->setInstallmentPrice($installmentPrice->installmentPrice); } if (isset($installmentPrice->totalPrice)) { $price->setTotalPrice($installmentPrice->totalPrice); } if (isset($installmentPrice->installmentNumber)) { $price->setInstallmentNumber($installmentPrice->installmentNumber); } $prices[$index] = $price; } return $prices; } }iyzipay-php/src/Iyzipay/Model/Mapper/PayWithIyzicoMapper.php000064400000001414150364332050020173 0ustar00token)) { $auth->setToken($jsonObject->token); } if (isset($jsonObject->callbackUrl)) { $auth->setCallbackUrl($jsonObject->callbackUrl); } return $auth; } public function mapPayWithIyzico(PayWithIyzico $auth) { return $this->mapPayWithIyzicoFrom($auth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/LoyaltyMapper.php000064400000002065150364332050017057 0ustar00points)) { $loyalty->setPoints($jsonObject->points); } if (isset($jsonObject->amount)) { $loyalty->setAmount($jsonObject->amount); } if (isset($jsonObject->cardBank)) { $loyalty->setCardBank($jsonObject->cardBank); } if (isset($jsonObject->cardFamily)) { $loyalty->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->currency)) { $loyalty->setCurrency($jsonObject->currency); } return $loyalty; } public function mapLoyalty(Loyalty $loyalty) { return $this->mapLoyaltyFrom($loyalty, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/IyziupFormInitializeResourceMapper.php000064400000002043150364332050023265 0ustar00token)) { $initialize->setToken($jsonObject->token); } if (isset($jsonObject->content)) { $initialize->setContent($jsonObject->content); } if (isset($jsonObject->tokenExpireTime)) { $initialize->setTokenExpireTime($jsonObject->tokenExpireTime); } return $initialize; } public function mapIyziupFormInitializeResource(IyziupFormInitializeResource $initialize) { return $this->mapIyziupFormInitializeResourceFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ReportingPaymentTransactionResourceMapper.php000064400000002135150364332050024645 0ustar00transactions)) { $create->setTransactions($jsonObject->transactions); } if (isset($jsonObject->currentPage)) { $create->setCurrentPage($jsonObject->currentPage); } if (isset($jsonObject->totalPageCount)) { $create->setTotalPageCount($jsonObject->totalPageCount); } return $create; } public function mapReportingPaymentTransactionResource(ReportingPaymentTransactionResource $create) { return $this->mapReportingPaymentTransactionResourceFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/SettlementToBalanceResourceMapper.php000064400000002230150364332050023021 0ustar00url)) { $settlementToBalanceResource->setUrl($jsonObject->url); } if (isset($jsonObject->token)) { $settlementToBalanceResource->setToken($jsonObject->token); } if (isset($jsonObject->settingsAllTime)) { $settlementToBalanceResource->setSettingsAllTime($jsonObject->settingsAllTime); } return $settlementToBalanceResource; } public function mapSettlementToBalanceResource(SettlementToBalanceResource $settlementToBalanceResource) { return $this->mapSettlementToBalanceResourceFrom($settlementToBalanceResource, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicPaymentPreAuthMapper.php000064400000001172150364332050021270 0ustar00mapBasicPaymentPreAuthFrom($preAuth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicBkmInitializeMapper.php000064400000001546150364332050021122 0ustar00htmlContent)) { $initialize->setHtmlContent(base64_decode($jsonObject->htmlContent)); } if (isset($jsonObject->token)) { $initialize->setToken($jsonObject->token); } return $initialize; } public function mapBasicBkmInitialize(BasicBkmInitialize $initialize) { return $this->mapBasicBkmInitializeFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ReportingPaymentTransactionMapper.php000064400000001324150364332050023134 0ustar00mapReportingPaymentTransactionFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ApprovalMapper.php000064400000001254150364332050017205 0ustar00paymentTransactionId)) { $approval->setPaymentTransactionId($jsonObject->paymentTransactionId); } return $approval; } public function mapApproval(Approval $approval) { return $this->mapApprovalFrom($approval, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CardListMapper.php000064400000002110150364332050017116 0ustar00cardUserKey)) { $cardList->setCardUserKey($jsonObject->cardUserKey); } if (isset($jsonObject->cardDetails)) { $cardList->setCardDetails($this->mapCardDetails($jsonObject->cardDetails)); } return $cardList; } public function mapCardList(CardList $cardList) { return $this->mapCardListFrom($cardList, $this->jsonObject); } private function mapCardDetails($cardDetails) { $cards = array(); foreach ($cardDetails as $index => $cardDetail) { $cards[$index] = CardMapper::create()->mapCardFrom(new Card(), $cardDetail); } return $cards; } }iyzipay-php/src/Iyzipay/Model/Mapper/PaymentResourceMapper.php000064400000007413150364332050020551 0ustar00price)) { $paymentResource->setPrice($jsonObject->price); } if (isset($jsonObject->paidPrice)) { $paymentResource->setPaidPrice($jsonObject->paidPrice); } if (isset($jsonObject->installment)) { $paymentResource->setInstallment($jsonObject->installment); } if (isset($jsonObject->paymentId)) { $paymentResource->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->paymentStatus)) { $paymentResource->setPaymentStatus($jsonObject->paymentStatus); } if (isset($jsonObject->fraudStatus)) { $paymentResource->setFraudStatus($jsonObject->fraudStatus); } if (isset($jsonObject->merchantCommissionRate)) { $paymentResource->setMerchantCommissionRate($jsonObject->merchantCommissionRate); } if (isset($jsonObject->merchantCommissionRateAmount)) { $paymentResource->setMerchantCommissionRateAmount($jsonObject->merchantCommissionRateAmount); } if (isset($jsonObject->iyziCommissionRateAmount)) { $paymentResource->setIyziCommissionRateAmount($jsonObject->iyziCommissionRateAmount); } if (isset($jsonObject->iyziCommissionFee)) { $paymentResource->setIyziCommissionFee($jsonObject->iyziCommissionFee); } if (isset($jsonObject->cardType)) { $paymentResource->setCardType($jsonObject->cardType); } if (isset($jsonObject->cardAssociation)) { $paymentResource->setCardAssociation($jsonObject->cardAssociation); } if (isset($jsonObject->cardFamily)) { $paymentResource->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->cardUserKey)) { $paymentResource->setCardUserKey($jsonObject->cardUserKey); } if (isset($jsonObject->cardToken)) { $paymentResource->setCardToken($jsonObject->cardToken); } if (isset($jsonObject->binNumber)) { $paymentResource->setBinNumber($jsonObject->binNumber); } if (isset($jsonObject->basketId)) { $paymentResource->setBasketId($jsonObject->basketId); } if (isset($jsonObject->currency)) { $paymentResource->setCurrency($jsonObject->currency); } if (isset($jsonObject->itemTransactions)) { $paymentResource->setPaymentItems(PaymentItemMapper::create()->mapPaymentItems($jsonObject->itemTransactions)); } if (isset($jsonObject->connectorName)) { $paymentResource->setConnectorName($jsonObject->connectorName); } if (isset($jsonObject->authCode)) { $paymentResource->setAuthCode($jsonObject->authCode); } if (isset($jsonObject->phase)) { $paymentResource->setPhase($jsonObject->phase); } if (isset($jsonObject->lastFourDigits)) { $paymentResource->setLastFourDigits($jsonObject->lastFourDigits); } if (isset($jsonObject->posOrderId)) { $paymentResource->setPosOrderId($jsonObject->posOrderId); } return $paymentResource; } public function mapPaymentResource(PaymentResource $paymentResource) { return $this->mapPaymentResourceFrom($paymentResource, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/IyziupFormInitializeMapper.php000064400000001235150364332050021557 0ustar00mapIyziupFormInitializeFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/RefundMapper.php000064400000001001150364332050016632 0ustar00mapRefundFrom($refund, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/SubMerchantPaymentItemResourceMapper.php000064400000002125150364332050023517 0ustar00subMerchantKey)) { $create->setSubMerchantKey($jsonObject->subMerchantKey); } if (isset($jsonObject->paymentTransactionId)) { $create->setPaymentTransactionId($jsonObject->paymentTransactionId); } if (isset($jsonObject->subMerchantPrice)) { $create->setSubMerchantPrice($jsonObject->subMerchantPrice); } return $create; } public function mapSubMerchantPaymentItemResource(SubMerchantPaymentItemUpdate $create) { return $this->mapSubMerchantPaymentItemResourceFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ApmMapper.php000064400000000724150364332050016137 0ustar00mapApmFrom($apm, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CrossBookingFromSubMerchantMapper.php000064400000001251150364332050023000 0ustar00mapCrossBookingFromSubMerchantFrom($booking, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/IyzipayResourceMapper.php000064400000003266150364332050020574 0ustar00rawResult = $rawResult; } public static function create($rawResult = null) { return new IyzipayResourceMapper($rawResult); } public function jsonDecode() { $this->jsonObject = JsonBuilder::jsonDecode($this->rawResult); return $this; } public function mapResourceFrom(IyzipayResource $resource, $jsonObject) { if (isset($jsonObject->status)) { $resource->setStatus($jsonObject->status); } if (isset($jsonObject->conversationId)) { $resource->setConversationId($jsonObject->conversationId); } if (isset($jsonObject->errorCode)) { $resource->setErrorCode($jsonObject->errorCode); } if (isset($jsonObject->errorMessage)) { $resource->setErrorMessage($jsonObject->errorMessage); } if (isset($jsonObject->errorGroup)) { $resource->setErrorGroup($jsonObject->errorGroup); } if (isset($jsonObject->locale)) { $resource->setLocale($jsonObject->locale); } if (isset($jsonObject->systemTime)) { $resource->setSystemTime($jsonObject->systemTime); } if (isset($this->rawResult)) { $resource->setRawResult($this->rawResult); } return $resource; } public function mapResource(IyzipayResource $resource) { return $this->mapResourceFrom($resource, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicBkmMapper.php000064400000001552150364332050017075 0ustar00token)) { $auth->setToken($jsonObject->token); } if (isset($jsonObject->callbackUrl)) { $auth->setCallbackUrl($jsonObject->callbackUrl); } if (isset($jsonObject->paymentStatus)) { $auth->setPaymentStatus($jsonObject->paymentStatus); } return $auth; } public function mapBasicBkm(BasicBkm $auth) { return $this->mapBasicBkmFrom($auth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ThreedsInitializeMapper.php000064400000001403150364332050021035 0ustar00threeDSHtmlContent)) { $initialize->setHtmlContent(base64_decode($jsonObject->threeDSHtmlContent)); } return $initialize; } public function mapThreedsInitialize(ThreedsInitialize $initialize) { return $this->mapThreedsInitializeFrom($initialize, $this->jsonObject); } } iyzipay-php/src/Iyzipay/Model/Mapper/ReportingPaymentDetailResourceMapper.php000064400000001455150364332050023566 0ustar00payments)) { $create->setPayments($jsonObject->payments); } return $create; } public function mapReportingPaymentDetailResource(ReportingPaymentDetailResource $create) { return $this->mapReportingPaymentDetailResourceFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ConsumerMapper.php000064400000001611150364332050017211 0ustar00name)) { $consumer->setName($jsonObject->name); } if (isset($jsonObject->surname)) { $consumer->setSurname($jsonObject->surname); } if (isset($jsonObject->identityNumber)) { $consumer->setIdentityNumber($jsonObject->identityNumber); } if (isset($jsonObject->email)) { $consumer->setEmail($jsonObject->email); } if (isset($jsonObject->gsmNumber)) { $consumer->setGsmNumber($jsonObject->gsmNumber); } return $consumer; } }iyzipay-php/src/Iyzipay/Model/Mapper/BkmInitializeMapper.php000064400000001477150364332050020163 0ustar00htmlContent)) { $initialize->setHtmlContent(base64_decode($jsonObject->htmlContent)); } if (isset($jsonObject->token)) { $initialize->setToken($jsonObject->token); } return $initialize; } public function mapBkmInitialize(BkmInitialize $initialize) { return $this->mapBkmInitializeFrom($initialize, $this->jsonObject); } } iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCustomerResourceMapper.php000064400000007621150364332050026027 0ustar00data->referenceCode)) { $create->setReferenceCode($jsonObject->data->referenceCode); } if (isset($jsonObject->data->status)) { $create->setCustomerStatus($jsonObject->data->status); } if (isset($jsonObject->data->name)) { $create->setName($jsonObject->data->name); } if (isset($jsonObject->data->surname)) { $create->setSurname($jsonObject->data->surname); } if (isset($jsonObject->data->identityNumber)) { $create->setIdentityNumber($jsonObject->data->identityNumber); } if (isset($jsonObject->data->email)) { $create->setEmail($jsonObject->data->email); } if (isset($jsonObject->data->gsmNumber)) { $create->setGsmNumber($jsonObject->data->gsmNumber); } if (isset($jsonObject->data->contactEmail)) { $create->setContactEmail($jsonObject->data->contactEmail); } if (isset($jsonObject->data->contactGsmNumber)) { $create->setContactGsmNumber($jsonObject->data->contactGsmNumber); } if (isset($jsonObject->data->billingAddress->contactName)) { $create->setBillingContactName($jsonObject->data->billingAddress->contactName); } if (isset($jsonObject->data->billingAddress->city)) { $create->setBillingCity($jsonObject->data->billingAddress->city); } if (isset($jsonObject->data->billingAddress->district)) { $create->setBillingDistrict($jsonObject->data->billingAddress->district); } if (isset($jsonObject->data->billingAddress->country)) { $create->setBillingCountry($jsonObject->data->billingAddress->country); } if (isset($jsonObject->data->billingAddress->address)) { $create->setBillingAddress($jsonObject->data->billingAddress->address); } if (isset($jsonObject->data->billingAddress->zipCode)) { $create->setBillingZipCode($jsonObject->data->billingAddress->zipCode); } if (isset($jsonObject->data->shippingAddress->contactName)) { $create->setShippingContactName($jsonObject->data->shippingAddress->contactName); } if (isset($jsonObject->data->shippingAddress->city)) { $create->setShippingCity($jsonObject->data->shippingAddress->city); } if (isset($jsonObject->data->shippingAddress->district)) { $create->setShippingDistrict($jsonObject->data->shippingAddress->district); } if (isset($jsonObject->data->shippingAddress->country)) { $create->setShippingCountry($jsonObject->data->shippingAddress->country); } if (isset($jsonObject->data->shippingAddress->address)) { $create->setShippingAddress($jsonObject->data->shippingAddress->address); } if (isset($jsonObject->data->shippingAddress->zipCode)) { $create->setShippingZipCode($jsonObject->data->shippingAddress->zipCode); } if (isset($jsonObject->data->createdDate)) { $create->setCreatedDate($jsonObject->data->createdDate); } return $create; } public function mapSubscriptionCustomer(SubscriptionCustomer $subscriptionCustomer) { return $this->mapSubscriptionCustomerResourceFrom($subscriptionCustomer, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionPricingPlanMapper.php000064400000001307150364332050024717 0ustar00mapSubscriptionPricingPlanFrom($create, $this->jsonObject); } } iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/RetrieveListResourceMapper.php000064400000002232150364332050024233 0ustar00data->totalCount)) { $create->setTotalCount($jsonObject->data->totalCount); } if (isset($jsonObject->data->currentPage)) { $create->setCurrentPage($jsonObject->data->currentPage); } if (isset($jsonObject->data->pageCount)) { $create->setPageCount($jsonObject->data->pageCount); } if (isset($jsonObject->data->items)) { $create->setItems($jsonObject->data->items); } return $create; } public function mapRetrieveList(RetrieveList $retrieveList) { return $this->mapRetrieveListResourceFrom($retrieveList, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCardUpdateResourceMapper.php000064400000002202150364332050026230 0ustar00token)) { $create->setToken($jsonObject->token); } if (isset($jsonObject->checkoutFormContent)) { $create->setCheckoutFormContent($jsonObject->checkoutFormContent); } if (isset($jsonObject->tokenExpireTime)) { $create->setTokenExpireTime($jsonObject->tokenExpireTime); } return $create; } public function mapSubscriptionCardUpdate(SubscriptionCardUpdate $subscriptionCardUpdate) { return $this->mapSubscriptionCardUpdateResourceFrom($subscriptionCardUpdate, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionProductResourceMapper.php000064400000003132150364332050025637 0ustar00status)) { $create->setStatus($jsonObject->status); } if (isset($jsonObject->data->name)) { $create->setName($jsonObject->data->name); } if (isset($jsonObject->data->description)) { $create->setDescription($jsonObject->data->description); } if (isset($jsonObject->data->status)) { $create->setProductStatus($jsonObject->data->status); } if (isset($jsonObject->data->referenceCode)) { $create->setReferenceCode($jsonObject->data->referenceCode); } if (isset($jsonObject->data->pricingPlans)) { $create->setPricingPlans($jsonObject->data->pricingPlans); } if (isset($jsonObject->data->createdDate)) { $create->setCreatedDate($jsonObject->data->createdDate); } return $create; } public function mapSubscriptionProduct(SubscriptionProduct $subscriptionProduct) { return $this->mapSubscriptionProductResourceFrom($subscriptionProduct, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/RetrieveListMapper.php000064400000001130150364332050022517 0ustar00mapRetrieveListFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCreateMapper.php000064400000001156150364332050023716 0ustar00mapSubscriptionCreateFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/RetrieveSubscriptionCheckoutFormMapper.php000064400000001436150364332050026613 0ustar00mapRetrieveSubscriptionCheckoutFormFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionPricingPlanResourceMapper.php000064400000004606150364332050026434 0ustar00data->status)) { $create->setPricingPlanStatus($jsonObject->data->status); } if (isset($jsonObject->data->name)) { $create->setName($jsonObject->data->name); } if (isset($jsonObject->data->productReferenceCode)) { $create->setProductReferenceCode($jsonObject->data->productReferenceCode); } if (isset($jsonObject->data->price)) { $create->setPrice($jsonObject->data->price); } if (isset($jsonObject->data->currencyCode)) { $create->setCurrencyCode($jsonObject->data->currencyCode); } if (isset($jsonObject->data->paymentInterval)) { $create->setPaymentInterval($jsonObject->data->paymentInterval); } if (isset($jsonObject->data->paymentIntervalCount)) { $create->setPaymentIntervalCount($jsonObject->data->paymentIntervalCount); } if (isset($jsonObject->data->trialPeriodDays)) { $create->setTrialPeriodDays($jsonObject->data->trialPeriodDays); } if (isset($jsonObject->data->planPaymentType)) { $create->setPlanPaymentType($jsonObject->data->planPaymentType); } if (isset($jsonObject->data->recurrenceCount)) { $create->setRecurrenceCount($jsonObject->data->recurrenceCount); } if (isset($jsonObject->data->referenceCode)) { $create->setReferenceCode($jsonObject->data->referenceCode); } if (isset($jsonObject->data->createdDate)) { $create->setCreatedDate($jsonObject->data->createdDate); } return $create; } public function mapSubscriptionPricingPlan(SubscriptionPricingPlan $subscriptionPricingPlan) { return $this->mapSubscriptionPricingPlanResourceFrom($subscriptionPricingPlan, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCustomerMapper.php000064400000001250150364332050024307 0ustar00mapSubscriptionCustomerFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionActionMapper.php000064400000001073150364332050023726 0ustar00mapSubscriptionActionFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCreateCheckoutFormMapper.php000064400000001414150364332050026225 0ustar00mapSubscriptionCreateCheckoutFormFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionDetailsResourceMapper.php000064400000005626150364332050025616 0ustar00data->referenceCode)) { $create->setReferenceCode($jsonObject->data->referenceCode); } if (isset($jsonObject->data->parentReferenceCode)){ $create->setParentReferenceCode($jsonObject->data->parentReferenceCode); } if(isset($jsonObject->data->pricingPlanReferenceCode)){ $create->setPricingPlanReferenceCode($jsonObject->data->pricingPlanReferenceCode); } if(isset($jsonObject->data->customerReferenceCode)){ $create->setCustomerReferenceCode($jsonObject->data->customerReferenceCode); } if(isset($jsonObject->data->subscriptionStatus)){ $create->setSubscriptionStatus($jsonObject->data->subscriptionStatus); } if(isset($jsonObject->data->trialDays)){ $create->setTrialDays($jsonObject->data->trialDays); } if(isset($jsonObject->data->trialStartDate)){ $create->setTrialStartDate($jsonObject->data->trialStartDate); } if(isset($jsonObject->data->trialEndDate)){ $create->setTrialEndDate($jsonObject->data->trialEndDate); } if(isset($jsonObject->data->createdDate)){ $create->setCreatedDate($jsonObject->data->createdDate); } if(isset($jsonObject->data->startDate)){ $create->setStartDate($jsonObject->data->startDate); } if(isset($jsonObject->data->endDate)){ $create->setEndDate($jsonObject->data->endDate); } if(isset($jsonObject->data->orders)){ $create->setOrders($jsonObject->data->orders); } if(isset($jsonObject->data->customerEmail)){ $create->setCustomerEmail($jsonObject->data->customerEmail); } if(isset($jsonObject->data->pricingPlanName)){ $create->setPricingPlanName($jsonObject->data->pricingPlanName); } if(isset($jsonObject->data->productName)){ $create->setProductName($jsonObject->data->productName); } if(isset($jsonObject->data->productReferenceCode)){ $create->setProductReferenceCode($jsonObject->data->productReferenceCode); } return $create; } public function mapSubscriptionDetails(SubscriptionDetails $subscriptionDetails) { return $this->mapSubscriptionDetailsResourceFrom($subscriptionDetails, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCreateCheckoutFormResourceMapper.php000064400000002322150364332050027734 0ustar00token)) { $create->setToken($jsonObject->token); } if (isset($jsonObject->checkoutFormContent)) { $create->setCheckoutFormContent($jsonObject->checkoutFormContent); } if (isset($jsonObject->tokenExpireTime)) { $create->setTokenExpireTime($jsonObject->tokenExpireTime); } return $create; } public function mapSubscriptionCreateCheckoutForm(SubscriptionCreateCheckoutForm $subscriptionCreateCheckoutForm) { return $this->mapSubscriptionCreateCheckoutFormResourceFrom($subscriptionCreateCheckoutForm, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCardUpdateMapper.php000064400000001274150364332050024530 0ustar00mapSubscriptionCardUpdateFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/RetrieveSubscriptionCheckoutFormResourceMapper.php000064400000004531150364332050030322 0ustar00data->referenceCode)) { $create->setReferenceCode($jsonObject->data->referenceCode); } if (isset($jsonObject->data->parentReferenceCode)){ $create->setParentReferenceCode($jsonObject->data->parentReferenceCode); } if(isset($jsonObject->data->pricingPlanReferenceCode)){ $create->setPricingPlanReferenceCode($jsonObject->data->pricingPlanReferenceCode); } if(isset($jsonObject->data->customerReferenceCode)){ $create->setCustomerReferenceCode($jsonObject->data->customerReferenceCode); } if(isset($jsonObject->data->subscriptionStatus)){ $create->setSubscriptionStatus($jsonObject->data->subscriptionStatus); } if(isset($jsonObject->data->trialDays)){ $create->setTrialDays($jsonObject->data->trialDays); } if(isset($jsonObject->data->trialStartDate)){ $create->setTrialStartDate($jsonObject->data->trialStartDate); } if(isset($jsonObject->data->trialEndDate)){ $create->setTrialEndDate($jsonObject->data->trialEndDate); } if(isset($jsonObject->data->createdDate)){ $create->setCreatedDate($jsonObject->data->createdDate); } if(isset($jsonObject->data->startDate)){ $create->setStartDate($jsonObject->data->startDate); } if(isset($jsonObject->data->endDate)){ $create->setEndDate($jsonObject->data->endDate); } return $create; } public function mapRetrieveSubscriptionCheckoutForm(RetrieveSubscriptionCheckoutForm $retrieveCheckoutForm) { return $this->mapRetrieveSubscriptionCheckoutFormResourceFrom($retrieveCheckoutForm, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionUpgradeMapper.php000064400000001236150364332050024101 0ustar00mapSubscriptionUpgradeFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionActionResourceMapper.php000064400000001230150364332050025431 0ustar00mapSubscriptionActionResourceFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionUpgradeResourceMapper.php000064400000004357150364332050025620 0ustar00data->referenceCode)) { $create->setReferenceCode($jsonObject->data->referenceCode); } if (isset($jsonObject->data->parentReferenceCode)){ $create->setParentReferenceCode($jsonObject->data->parentReferenceCode); } if(isset($jsonObject->data->pricingPlanReferenceCode)){ $create->setPricingPlanReferenceCode($jsonObject->data->pricingPlanReferenceCode); } if(isset($jsonObject->data->customerReferenceCode)){ $create->setCustomerReferenceCode($jsonObject->data->customerReferenceCode); } if(isset($jsonObject->data->subscriptionStatus)){ $create->setSubscriptionStatus($jsonObject->data->subscriptionStatus); } if(isset($jsonObject->data->trialDays)){ $create->setTrialDays($jsonObject->data->trialDays); } if(isset($jsonObject->data->trialStartDate)){ $create->setTrialStartDate($jsonObject->data->trialStartDate); } if(isset($jsonObject->data->trialEndDate)){ $create->setTrialEndDate($jsonObject->data->trialEndDate); } if(isset($jsonObject->data->createdDate)){ $create->setCreatedDate($jsonObject->data->createdDate); } if(isset($jsonObject->data->startDate)){ $create->setStartDate($jsonObject->data->startDate); } if(isset($jsonObject->data->endDate)){ $create->setEndDate($jsonObject->data->endDate); } return $create; } public function mapSubscriptionUpgrade(SubscriptionUpgrade $subscriptionUpgrade) { return $this->mapSubscriptionUpgradeResourceFrom($subscriptionUpgrade, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionDetailsMapper.php000064400000001236150364332050024077 0ustar00mapSubscriptionDetailsFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionCreateResourceMapper.php000064400000004277150364332050025435 0ustar00data->referenceCode)) { $create->setReferenceCode($jsonObject->data->referenceCode); } if (isset($jsonObject->data->parentReferenceCode)){ $create->setParentReferenceCode($jsonObject->data->parentReferenceCode); } if(isset($jsonObject->data->pricingPlanReferenceCode)){ $create->setPricingPlanReferenceCode($jsonObject->data->pricingPlanReferenceCode); } if(isset($jsonObject->data->customerReferenceCode)){ $create->setCustomerReferenceCode($jsonObject->data->customerReferenceCode); } if(isset($jsonObject->data->subscriptionStatus)){ $create->setSubscriptionStatus($jsonObject->data->subscriptionStatus); } if(isset($jsonObject->data->trialDays)){ $create->setTrialDays($jsonObject->data->trialDays); } if(isset($jsonObject->data->trialStartDate)){ $create->setTrialStartDate($jsonObject->data->trialStartDate); } if(isset($jsonObject->data->trialEndDate)){ $create->setTrialEndDate($jsonObject->data->trialEndDate); } if(isset($jsonObject->data->createdDate)){ $create->setCreatedDate($jsonObject->data->createdDate); } if(isset($jsonObject->data->startDate)){ $create->setStartDate($jsonObject->data->startDate); } if(isset($jsonObject->data->endDate)){ $create->setEndDate($jsonObject->data->endDate); } return $create; } public function mapSubscriptionCreate($subscriptionCreate) { return $this->mapSubscriptionCreateResourceFrom($subscriptionCreate, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionProductMapper.php000064400000001236150364332050024132 0ustar00mapSubscriptionProductFrom($create, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/RefundChargedFromMerchantMapper.php000064400000001231150364332050022423 0ustar00mapRefundChargedFromMerchantFrom($refund, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/ProtectedOverleyScriptMapper.php000064400000001757150364332050022115 0ustar00protectedShopId)) { $protectedOverleyScript->setProtectedShopId($jsonObject->protectedShopId); } if (isset($jsonObject->overlayScript)) { $protectedOverleyScript->setOverlayScript($jsonObject->overlayScript); } return $protectedOverleyScript; } public function mapProtectedOverleyScript(ProtectedOverleyScript $protectedOverleyScript) { return $this->mapProtectedOverleyScriptFrom($protectedOverleyScript, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/BasicThreedsPaymentMapper.php000064400000001153150364332050021315 0ustar00mapBasicThreedsPaymentFrom($auth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CheckoutFormInitializeMapper.php000064400000001265150364332050022036 0ustar00mapCheckoutFormInitializeFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/UCSInitializeMapper.php000064400000001133150364332050020071 0ustar00mapUCSInitializeFrom($initialize, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/DisapprovalMapper.php000064400000001326150364332050017705 0ustar00paymentTransactionId)) { $disapproval->setPaymentTransactionId($jsonObject->paymentTransactionId); } return $disapproval; } public function mapDisapproval(Disapproval $disapproval) { return $this->mapDisapprovalFrom($disapproval, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/IyziupFormMapper.php000064400000003555150364332050017544 0ustar00orderResponseStatus)) { $iyziupForm->setOrderResponseStatus($jsonObject->orderResponseStatus); } if (isset($jsonObject->token)) { $iyziupForm->setToken($jsonObject->token); } if (isset($jsonObject->callbackUrl)) { $iyziupForm->setCallbackUrl($jsonObject->callbackUrl); } if (isset($jsonObject->consumer)) { $iyziupForm->setConsumer(ConsumerMapper::create($jsonObject->consumer)->mapConsumerFrom(new Consumer(), $jsonObject->consumer)); } if (isset($jsonObject->shippingAddress)) { $iyziupForm->setShippingAddress(AddressMapper::create($jsonObject->shippingAddress)->mapAddressFrom(new Address(), $jsonObject->shippingAddress)); } if (isset($jsonObject->billingAddress)) { $iyziupForm->setBillingAddress(AddressMapper::create($jsonObject->billingAddress)->mapAddressFrom(new Address(), $jsonObject->billingAddress)); } if (isset($jsonObject->paymentDetail)) { $iyziupForm->setPaymentDetail(PaymentResourceMapper::create($jsonObject->paymentDetail)->mapPaymentResourceFrom(new PaymentResource(), $jsonObject->paymentDetail)); } return $iyziupForm; } public function mapIyziupForm(IyziupForm $iyziupForm) { return $this->mapIyziupFormFrom($iyziupForm, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/Mapper/CheckoutFormMapper.php000064400000001404150364332050020007 0ustar00token)) { $auth->setToken($jsonObject->token); } if (isset($jsonObject->callbackUrl)) { $auth->setCallbackUrl($jsonObject->callbackUrl); } return $auth; } public function mapCheckoutForm(CheckoutForm $auth) { return $this->mapCheckoutFormFrom($auth, $this->jsonObject); } }iyzipay-php/src/Iyzipay/Model/RefundResource.php000064400000002552150364332050015765 0ustar00paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getPaymentTransactionId() { return $this->paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getConnectorName() { return $this->connectorName; } public function setConnectorName($connectorName) { $this->connectorName = $connectorName; } public function getAuthCode() { return $this->authCode; } public function setAuthCode($authCode) { $this->authCode = $authCode; } }iyzipay-php/src/Iyzipay/Model/PaymentPreAuth.php000064400000001726150364332050015742 0ustar00post($options->getBaseUrl() . "/payment/preauth", parent::getHttpHeaders($request, $options), $request->toJsonString()); return PaymentPreAuthMapper::create($rawResult)->jsonDecode()->mapPaymentPreAuth(new PaymentPreAuth()); } public static function retrieve(RetrievePaymentRequest $request, Options $options) { $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/detail", parent::getHttpHeaders($request, $options), $request->toJsonString()); return PaymentPreAuthMapper::create($rawResult)->jsonDecode()->mapPaymentPreAuth(new PaymentPreAuth()); } }iyzipay-php/src/Iyzipay/Model/SubMerchantPaymentItemUpdate.php000064400000001220150364332050020554 0ustar00put($options->getBaseUrl() . "/payment/item", parent::getHttpHeaders($request, $options), $request->toJsonString()); return SubMerchantPaymentItemMapper::create($rawResult)->jsonDecode()->mapSubMerchantPaymentItem(new SubMerchantPaymentItemUpdate()); } }iyzipay-php/src/Iyzipay/Model/Refund.php000064400000001007150364332050014247 0ustar00post($options->getBaseUrl() . "/payment/refund", parent::getHttpHeaders($request, $options), $request->toJsonString()); return RefundMapper::create($rawResult)->jsonDecode()->mapRefund(new Refund()); } }iyzipay-php/src/Iyzipay/Model/Bkm.php000064400000001611150364332050013536 0ustar00post($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; } }iyzipay-php/src/Iyzipay/Model/BasicPaymentPostAuth.php000064400000001155150364332050017077 0ustar00post($options->getBaseUrl() . "/payment/postauth/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicPaymentPostAuthMapper::create($rawResult)->jsonDecode()->mapBasicPaymentPostAuth(new BasicPaymentPostAuth()); } }iyzipay-php/src/Iyzipay/Model/SettlementToBalanceResource.php000064400000001276150364332050020441 0ustar00url; } public function setUrl($url) { $this->url = $url; } public function getToken() { return $this->token; } public function setToken($token) { $this->token = $token; } public function getSettingsAllTime() { return $this->settingsAllTime; } public function setSettingsAllTime($settingsAllTime) { $this->settingsAllTime = $settingsAllTime; } }iyzipay-php/src/Iyzipay/Model/BasicBkm.php000064400000002223150364332050014500 0ustar00post($options->getBaseUrl() . "/payment/bkm/auth/detail/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicBkmMapper::create($rawResult)->jsonDecode()->mapBasicBkm(new BasicBkm()); } 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; } public function getPaymentStatus() { return $this->paymentStatus; } public function setPaymentStatus($paymentStatus) { $this->paymentStatus = $paymentStatus; } }iyzipay-php/src/Iyzipay/Model/ApiTest.php000064400000000666150364332050014407 0ustar00get($options->getBaseUrl() . "/payment/test"); return IyzipayResourceMapper::create($rawResult)->jsonDecode()->mapResource(new IyzipayResource()); } } iyzipay-php/src/Iyzipay/Model/ThreedsInitialize.php000064400000001505150364332050016447 0ustar00post($options->getBaseUrl() . "/payment/3dsecure/initialize", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ThreedsInitializeMapper::create($rawResult)->jsonDecode()->mapThreedsInitialize(new ThreedsInitialize()); } public function getHtmlContent() { return $this->htmlContent; } public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } } iyzipay-php/src/Iyzipay/Model/PayWithIyzico.php000064400000001746150364332050015612 0ustar00post($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; } }iyzipay-php/src/Iyzipay/Model/InstallmentHtml.php000064400000001541150364332050016146 0ustar00post($options->getBaseUrl() . "/payment/iyzipos/installment/html/horizontal", parent::getHttpHeaders($request, $options), $request->toJsonString()); return InstallmentHtmlMapper::create($rawResult)->jsonDecode()->mapInstallmentHtml(new InstallmentHtml()); } public function getHtmlContent() { return $this->htmlContent; } public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } } iyzipay-php/src/Iyzipay/Model/BasketItemType.php000064400000000171150364332050015717 0ustar00post($options->getBaseUrl() . "/payment/apm/initialize", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ApmMapper::create($rawResult)->jsonDecode()->mapApm(new Apm()); } public static function retrieve(RetrieveApmRequest $request, Options $options) { $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/apm/retrieve", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ApmMapper::create($rawResult)->jsonDecode()->mapApm(new Apm()); } }iyzipay-php/src/Iyzipay/Model/BasicPaymentResource.php000064400000010052150364332050017113 0ustar00price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getInstallment() { return $this->installment; } public function setInstallment($installment) { $this->installment = $installment; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getPaymentId() { return $this->paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getMerchantCommissionRate() { return $this->merchantCommissionRate; } public function setMerchantCommissionRate($merchantCommissionRate) { $this->merchantCommissionRate = $merchantCommissionRate; } public function getMerchantCommissionRateAmount() { return $this->merchantCommissionRateAmount; } public function setMerchantCommissionRateAmount($merchantCommissionRateAmount) { $this->merchantCommissionRateAmount = $merchantCommissionRateAmount; } public function getIyziCommissionFee() { return $this->iyziCommissionFee; } public function setIyziCommissionFee($iyziCommissionFee) { $this->iyziCommissionFee = $iyziCommissionFee; } public function getCardType() { return $this->cardType; } public function setCardType($cardType) { $this->cardType = $cardType; } public function getCardAssociation() { return $this->cardAssociation; } public function setCardAssociation($cardAssociation) { $this->cardAssociation = $cardAssociation; } public function getCardFamily() { return $this->cardFamily; } public function setCardFamily($cardFamily) { $this->cardFamily = $cardFamily; } public function getCardToken() { return $this->cardToken; } public function setCardToken($cardToken) { $this->cardToken = $cardToken; } public function getCardUserKey() { return $this->cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getBinNumber() { return $this->binNumber; } public function setBinNumber($binNumber) { $this->binNumber = $binNumber; } public function getPaymentTransactionId() { return $this->paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getAuthCode() { return $this->authCode; } public function setAuthCode($authCode) { $this->authCode = $authCode; } public function getConnectorName() { return $this->connectorName; } public function setConnectorName($connectorName) { $this->connectorName = $connectorName; } public function getPhase() { return $this->phase; } public function setPhase($phase) { $this->phase = $phase; } }iyzipay-php/src/Iyzipay/Model/BasicPayment.php000064400000001073150364332050015406 0ustar00post($options->getBaseUrl() . "/payment/auth/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicPaymentMapper::create($rawResult)->jsonDecode()->mapBasicPayment(new BasicPayment()); } }iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkRetrieveProductResource.php000064400000000460150364332050023151 0ustar00item; } public function setItem($item) { $this->item = $item; } }iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkDeleteProduct.php000064400000001314150364332050021055 0ustar00getBaseUrl() . "/v2/iyzilink/products/" . $token . RequestStringBuilder::requestToStringQuery($request, null); $rawResult = parent::httpClient()->delete($uri, parent::getHttpHeadersV2($uri, null, $options)); return IyziLinkDeleteProductMapper::create($rawResult)->jsonDecode()->mapIyziLinkDeleteProduct(new IyziLinkDeleteProduct()); } }iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkRetrieveAllProduct.php000064400000001356150364332050022077 0ustar00getBaseUrl() . "/v2/iyzilink/products" . RequestStringBuilder::requestToStringQuery($request, 'pages'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options)); return IyziLinkRetrieveAllProductMapper::create($rawResult)->jsonDecode()->mapIyziLinkRetriveAllProduct(new IyziLinkRetrieveAllProduct()); } }iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkDeleteProductResource.php000064400000000210150364332050022557 0ustar00getBaseUrl() . "/v2/iyzilink/products/". RequestStringBuilder::requestToStringQuery($request, null); $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return IyziLinkSaveProductMapper::create($rawResult)->jsonDecode()->mapIyziLinkSaveProduct(new IyziLinkSaveProduct()); } } iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkRetrieveProduct.php000064400000001324150364332050021441 0ustar00getBaseUrl() . "/v2/iyzilink/products/" . $token. RequestStringBuilder::requestToStringQuery($request, null); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options)); return IyziLinkRetrieveProductMapper::create($rawResult)->jsonDecode()->mapIyziLinkRetriveProduct(new IyziLinkRetrieveProduct()); } }iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkUpdateProduct.php000064400000001423150364332050021076 0ustar00getBaseUrl() . "/v2/iyzilink/products/" . $token . RequestStringBuilder::requestToStringQuery($request, null); $rawResult = parent::httpClient()->put($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return IyziLinkSaveProductMapper::create($rawResult)->jsonDecode()->mapIyziLinkSaveProduct(new IyziLinkSaveProduct()); } }iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkSaveProductResource.php000064400000002350150364332050022262 0ustar00base64EncodedImage; } public function getPrice() { return $this->price; } public function getCurrency() { return $this->currency; } public function getAddressIgnorable() { return $this->addressIgnorable; } public function getSoldLimit() { return $this->soldLimit; } public function getToken() { return $this->token; } public function setToken($token) { $this->token = $token; } public function getUrl() { return $this->url; } public function setUrl($url) { $this->url = $url; } public function getImageUrl() { return $this->imageUrl; } public function setImageUrl($imageUrl) { $this->imageUrl = $imageUrl; } }iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkRetrieveAllProductResource.php000064400000002241150364332050023601 0ustar00listingReviewed; } public function setListingReviewed($listingReviewed) { $this->listingReviewed = $listingReviewed; } public function getTotalCount() { return $this->totalCount; } public function setTotalCount($totalCount) { $this->totalCount = $totalCount; } public function getCurrentPage() { return $this->currentPage; } public function setCurrentPage($currentPage) { $this->currentPage = $currentPage; } public function getPageCount() { return $this->pageCount; } public function setPageCount($pageCount) { $this->pageCount = $pageCount; } public function getItems() { return $this->items; } public function setItems($items) { $this->items = $items; } }iyzipay-php/src/Iyzipay/Model/UCSInitialize.php000064400000001115150364332050015500 0ustar00getBaseUrl() . "/v2/ucs/init"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return UCSInitializeMapper::create($rawResult)->jsonDecode()->mapUCSInitialize(new UCSInitialize()); } }iyzipay-php/src/Iyzipay/Model/BasicBkmInitialize.php000064400000002016150364332050016522 0ustar00post($options->getBaseUrl() . "/payment/bkm/initialize/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicBkmInitializeMapper::create($rawResult)->jsonDecode()->mapBasicBkmInitialize(new BasicBkmInitialize()); } public function getHtmlContent() { return $this->htmlContent; } public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } public function getToken() { return $this->token; } public function setToken($token) { $this->token = $token; } }iyzipay-php/src/Iyzipay/Model/Cancel.php000064400000003012150364332050014207 0ustar00post($options->getBaseUrl() . "/payment/cancel", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CancelMapper::create($rawResult)->jsonDecode()->mapCancel(new Cancel()); } public function getPaymentId() { return $this->paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getConnectorName() { return $this->connectorName; } public function setConnectorName($connectorName) { $this->connectorName = $connectorName; } public function getAuthCode() { return $this->authCode; } public function setAuthCode($authCode) { $this->authCode = $authCode; } }iyzipay-php/src/Iyzipay/Model/Locale.php000064400000000133150364332050014222 0ustar00paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getIyziCommissionRateAmount() { return $this->iyziCommissionRateAmount; } public function setIyziCommissionRateAmount($iyziCommissionRateAmount) { $this->iyziCommissionRateAmount = $iyziCommissionRateAmount; } public function getIyziCommissionFee() { return $this->iyziCommissionFee; } public function setIyziCommissionFee($iyziCommissionFee) { $this->iyziCommissionFee = $iyziCommissionFee; } public function getBlockageRateAmountMerchant() { return $this->blockageRateAmountMerchant; } public function setBlockageRateAmountMerchant($blockageRateAmountMerchant) { $this->blockageRateAmountMerchant = $blockageRateAmountMerchant; } public function getBlockageRateAmountSubMerchant() { return $this->blockageRateAmountSubMerchant; } public function setBlockageRateAmountSubMerchant($blockageRateAmountSubMerchant) { $this->blockageRateAmountSubMerchant = $blockageRateAmountSubMerchant; } public function getSubMerchantPayoutAmount() { return $this->subMerchantPayoutAmount; } public function setSubMerchantPayoutAmount($subMerchantPayoutAmount) { $this->subMerchantPayoutAmount = $subMerchantPayoutAmount; } public function getMerchantPayoutAmount() { return $this->merchantPayoutAmount; } public function setMerchantPayoutAmount($merchantPayoutAmount) { $this->merchantPayoutAmount = $merchantPayoutAmount; } public function getIyziConversionRate() { return $this->iyziConversionRate; } public function setIyziConversionRate($iyziConversionRate) { $this->iyziConversionRate = $iyziConversionRate; } public function getIyziConversionRateAmount() { return $this->iyziConversionRateAmount; } public function setIyziConversionRateAmount($iyziConversionRateAmount) { $this->iyziConversionRateAmount = $iyziConversionRateAmount; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } }iyzipay-php/src/Iyzipay/Model/BkmInstallment.php000064400000002111150364332050015745 0ustar00bankId; } public function setBankId($bankId) { $this->bankId = $bankId; } public function getInstallmentPrices() { return $this->installmentPrices; } public function setInstallmentPrices($installmentPrices) { $this->installmentPrices = $installmentPrices; } public function getJsonObject() { return JsonBuilder::create() ->add("bankId", $this->getBankId()) ->addArray("installmentPrices", $this->getInstallmentPrices()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("bankId", $this->getBankId()) ->appendArray("installmentPrices", $this->getInstallmentPrices()) ->getRequestString(); } } iyzipay-php/src/Iyzipay/Model/PayWithIyzicoInitialize.php000064400000001245150364332050017626 0ustar00post($options->getBaseUrl() . "/payment/pay-with-iyzico/initialize", parent::getHttpHeaders($request, $options), $request->toJsonString()); return PayWithIyzicoInitializeMapper::create($rawResult)->jsonDecode()->mapPayWithIyzicoInitialize(new PayWithIyzicoInitialize()); } }iyzipay-php/src/Iyzipay/Model/BasicPaymentPreAuth.php000064400000001141150364332050016673 0ustar00post($options->getBaseUrl() . "/payment/preauth/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicPaymentPreAuthMapper::create($rawResult)->jsonDecode()->mapBasicPaymentPreAuth(new BasicPaymentPreAuth()); } }iyzipay-php/src/Iyzipay/Model/OrderItem.php000064400000005323150364332050014723 0ustar00id; } public function setId($id) { $this->id = $id; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getCategory1() { return $this->category1; } public function setCategory1($category1) { $this->category1 = $category1; } public function getCategory2() { return $this->category2; } public function setCategory2($category2) { $this->category2 = $category2; } public function getItemType() { return $this->itemType; } public function setItemType($itemType) { $this->itemType = $itemType; } public function getItemUrl() { return $this->itemUrl; } public function setItemUrl($itemUrl) { $this->itemUrl = $itemUrl; } public function getItemDescription() { return $this->itemDescription; } public function setItemDescription($itemDescription) { $this->itemDescription = $itemDescription; } public function getJsonObject() { return JsonBuilder::create() ->add("id", $this->getId()) ->addPrice("price", $this->getPrice()) ->add("name", $this->getName()) ->add("category1", $this->getCategory1()) ->add("category2", $this->getCategory2()) ->add("itemType", $this->getItemType()) ->add("itemUrl", $this->getItemUrl()) ->add("itemDescription", $this->getItemDescription()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("id", $this->getId()) ->appendPrice("price", $this->getPrice()) ->append("name", $this->getName()) ->append("category1", $this->getCategory1()) ->append("category2", $this->getCategory2()) ->append("itemType", $this->getItemType()) ->append("itemUrl", $this->getItemUrl()) ->append("itemDescription", $this->getItemDescription()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/BasicThreedsInitializePreAuth.php000064400000001630150364332050020701 0ustar00post($options->getBaseUrl() . "/payment/3dsecure/initialize/preauth/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicThreedsInitializePreAuthMapper::create($rawResult)->jsonDecode()->mapBasicThreedsInitializePreAuth(new BasicThreedsInitializePreAuth()); } public function getHtmlContent() { return $this->htmlContent; } public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } }iyzipay-php/src/Iyzipay/Model/Disapproval.php000064400000001553150364332050015316 0ustar00post($options->getBaseUrl() . "/payment/iyzipos/item/disapprove", parent::getHttpHeaders($request, $options), $request->toJsonString()); return DisapprovalMapper::create($rawResult)->jsonDecode()->mapDisapproval(new Disapproval()); } public function getPaymentTransactionId() { return $this->paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } }iyzipay-php/src/Iyzipay/Model/PaymentItem.php000064400000011757150364332050015275 0ustar00itemId; } public function setItemId($itemId) { $this->itemId = $itemId; } public function getPaymentTransactionId() { return $this->paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getTransactionStatus() { return $this->transactionStatus; } public function setTransactionStatus($transactionStatus) { $this->transactionStatus = $transactionStatus; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getMerchantCommissionRate() { return $this->merchantCommissionRate; } public function setMerchantCommissionRate($merchantCommissionRate) { $this->merchantCommissionRate = $merchantCommissionRate; } public function getMerchantCommissionRateAmount() { return $this->merchantCommissionRateAmount; } public function setMerchantCommissionRateAmount($merchantCommissionRateAmount) { $this->merchantCommissionRateAmount = $merchantCommissionRateAmount; } public function getIyziCommissionRateAmount() { return $this->iyziCommissionRateAmount; } public function setIyziCommissionRateAmount($iyziCommissionRateAmount) { $this->iyziCommissionRateAmount = $iyziCommissionRateAmount; } public function getIyziCommissionFee() { return $this->iyziCommissionFee; } public function setIyziCommissionFee($iyziCommissionFee) { $this->iyziCommissionFee = $iyziCommissionFee; } public function getBlockageRate() { return $this->blockageRate; } public function setBlockageRate($blockageRate) { $this->blockageRate = $blockageRate; } public function getBlockageRateAmountMerchant() { return $this->blockageRateAmountMerchant; } public function setBlockageRateAmountMerchant($blockageRateAmountMerchant) { $this->blockageRateAmountMerchant = $blockageRateAmountMerchant; } public function getBlockageRateAmountSubMerchant() { return $this->blockageRateAmountSubMerchant; } public function setBlockageRateAmountSubMerchant($blockageRateAmountSubMerchant) { $this->blockageRateAmountSubMerchant = $blockageRateAmountSubMerchant; } public function getBlockageResolvedDate() { return $this->blockageResolvedDate; } public function setBlockageResolvedDate($blockageResolvedDate) { $this->blockageResolvedDate = $blockageResolvedDate; } public function getSubMerchantKey() { return $this->subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getSubMerchantPrice() { return $this->subMerchantPrice; } public function setSubMerchantPrice($subMerchantPrice) { $this->subMerchantPrice = $subMerchantPrice; } public function getSubMerchantPayoutRate() { return $this->subMerchantPayoutRate; } public function setSubMerchantPayoutRate($subMerchantPayoutRate) { $this->subMerchantPayoutRate = $subMerchantPayoutRate; } public function getSubMerchantPayoutAmount() { return $this->subMerchantPayoutAmount; } public function setSubMerchantPayoutAmount($subMerchantPayoutAmount) { $this->subMerchantPayoutAmount = $subMerchantPayoutAmount; } public function getMerchantPayoutAmount() { return $this->merchantPayoutAmount; } public function setMerchantPayoutAmount($merchantPayoutAmount) { $this->merchantPayoutAmount = $merchantPayoutAmount; } public function getConvertedPayout() { return $this->convertedPayout; } public function setConvertedPayout($convertedPayout) { $this->convertedPayout = $convertedPayout; } }iyzipay-php/src/Iyzipay/Model/BinNumber.php000064400000003755150364332050014721 0ustar00post($options->getBaseUrl() . "/payment/bin/check", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BinNumberMapper::create($rawResult)->jsonDecode()->mapBinNumber(new BinNumber()); } public function getBinNumber() { return $this->binNumber; } public function setBinNumber($binNumber) { $this->binNumber = $binNumber; } public function getCardType() { return $this->cardType; } public function setCardType($cardType) { $this->cardType = $cardType; } public function getCardAssociation() { return $this->cardAssociation; } public function setCardAssociation($cardAssociation) { $this->cardAssociation = $cardAssociation; } public function getCardFamily() { return $this->cardFamily; } public function setCardFamily($cardFamily) { $this->cardFamily = $cardFamily; } public function getBankName() { return $this->bankName; } public function setBankName($bankName) { $this->bankName = $bankName; } public function getBankCode() { return $this->bankCode; } public function setBankCode($bankCode) { $this->bankCode = $bankCode; } public function getCommercial() { return $this->commercial; } public function setCommercial($commercial) { $this->commercial = $commercial; } }iyzipay-php/src/Iyzipay/Model/Payment.php000064400000001633150364332050014446 0ustar00post($options->getBaseUrl() . "/payment/auth", parent::getHttpHeaders($request, $options), $request->toJsonString()); return PaymentMapper::create($rawResult)->jsonDecode()->mapPayment(new Payment()); } public static function retrieve(RetrievePaymentRequest $request, Options $options) { $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/detail", parent::getHttpHeaders($request, $options), $request->toJsonString()); return PaymentMapper::create($rawResult)->jsonDecode()->mapPayment(new Payment()); } }iyzipay-php/src/Iyzipay/Model/Approval.php000064400000001531150364332050014612 0ustar00post($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; } }iyzipay-php/src/Iyzipay/Model/SubMerchant.php000064400000011373150364332050015246 0ustar00post($options->getBaseUrl() . "/onboarding/submerchant", parent::getHttpHeaders($request, $options), $request->toJsonString()); return SubMerchantMapper::create($rawResult)->jsonDecode()->mapSubMerchant(new SubMerchant()); } public static function update(UpdateSubMerchantRequest $request, Options $options) { $rawResult = parent::httpClient()->put($options->getBaseUrl() . "/onboarding/submerchant", parent::getHttpHeaders($request, $options), $request->toJsonString()); return SubMerchantMapper::create($rawResult)->jsonDecode()->mapSubMerchant(new SubMerchant()); } public static function retrieve(RetrieveSubMerchantRequest $request, Options $options) { $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/onboarding/submerchant/detail", parent::getHttpHeaders($request, $options), $request->toJsonString()); return SubMerchantMapper::create($rawResult)->jsonDecode()->mapSubMerchant(new SubMerchant()); } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getAddress() { return $this->address; } public function setAddress($address) { $this->address = $address; } public function getIban() { return $this->iban; } public function setIban($iban) { $this->iban = $iban; } public function getSwiftCode() { return $this->swiftCode; } public function setSwiftCode($swiftCode) { $this->swiftCode = $swiftCode; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getTaxOffice() { return $this->taxOffice; } public function setTaxOffice($taxOffice) { $this->taxOffice = $taxOffice; } public function getContactName() { return $this->contactName; } public function setContactName($contactName) { $this->contactName = $contactName; } public function getContactSurname() { return $this->contactSurname; } public function setContactSurname($contactSurname) { $this->contactSurname = $contactSurname; } public function getLegalCompanyTitle() { return $this->legalCompanyTitle; } public function setLegalCompanyTitle($legalCompanyTitle) { $this->legalCompanyTitle = $legalCompanyTitle; } public function getSubMerchantExternalId() { return $this->subMerchantExternalId; } public function setSubMerchantExternalId($subMerchantExternalId) { $this->subMerchantExternalId = $subMerchantExternalId; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getTaxNumber() { return $this->taxNumber; } public function setTaxNumber($taxNumber) { $this->taxNumber = $taxNumber; } public function getSubMerchantType() { return $this->subMerchantType; } public function setSubMerchantType($subMerchantType) { $this->subMerchantType = $subMerchantType; } public function getSubMerchantKey() { return $this->subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } }iyzipay-php/src/Iyzipay/Model/InstallmentPrice.php000064400000001411150364332050016300 0ustar00installmentPrice; } public function setInstallmentPrice($installmentPrice) { $this->installmentPrice = $installmentPrice; } public function getTotalPrice() { return $this->totalPrice; } public function setTotalPrice($totalPrice) { $this->totalPrice = $totalPrice; } public function getInstallmentNumber() { return $this->installmentNumber; } public function setInstallmentNumber($installmentNumber) { $this->installmentNumber = $installmentNumber; } }iyzipay-php/src/Iyzipay/Model/BasicThreedsPayment.php000064400000001153150364332050016724 0ustar00post($options->getBaseUrl() . "/payment/3dsecure/auth/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicThreedsPaymentMapper::create($rawResult)->jsonDecode()->mapBasicThreedsPayment(new BasicThreedsPayment()); } }iyzipay-php/src/Iyzipay/Model/InstallmentDetail.php000064400000004467150364332050016456 0ustar00binNumber; } public function setBinNumber($binNumber) { $this->binNumber = $binNumber; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getCardType() { return $this->cardType; } public function setCardType($cardType) { $this->cardType = $cardType; } public function getCardAssociation() { return $this->cardAssociation; } public function setCardAssociation($cardAssociation) { $this->cardAssociation = $cardAssociation; } public function getCardFamilyName() { return $this->cardFamilyName; } public function setCardFamilyName($cardFamilyName) { $this->cardFamilyName = $cardFamilyName; } public function getForce3ds() { return $this->force3ds; } public function setForce3ds($force3ds) { $this->force3ds = $force3ds; } public function getBankCode() { return $this->bankCode; } public function setBankCode($bankCode) { $this->bankCode = $bankCode; } public function getBankName() { return $this->bankName; } public function setBankName($bankName) { $this->bankName = $bankName; } public function getForceCvc() { return $this->forceCvc; } public function setForceCvc($forceCvc) { $this->forceCvc = $forceCvc; } public function getCommercial() { return $this->commercial; } public function setCommercial($commercial) { $this->commercial = $commercial; } public function getInstallmentPrices() { return $this->installmentPrices; } public function setInstallmentPrices($installmentPrices) { $this->installmentPrices = $installmentPrices; } }iyzipay-php/src/Iyzipay/Model/PayoutCompletedTransactionList.php000064400000002016150364332050021205 0ustar00post($options->getBaseUrl() . "/reporting/settlement/payoutcompleted", parent::getHttpHeaders($request, $options), $request->toJsonString()); return PayoutCompletedTransactionListMapper::create($rawResult)->jsonDecode()->mapPayoutCompletedTransactionList(new PayoutCompletedTransactionList()); } public function getPayoutCompletedTransactions() { return $this->payoutCompletedTransactions; } public function setPayoutCompletedTransactions($payoutCompletedTransactions) { $this->payoutCompletedTransactions = $payoutCompletedTransactions; } }iyzipay-php/src/Iyzipay/Model/InstallmentInfo.php000064400000001601150364332050016132 0ustar00post($options->getBaseUrl() . "/payment/iyzipos/installment", parent::getHttpHeaders($request, $options), $request->toJsonString()); return InstallmentInfoMapper::create($rawResult)->jsonDecode()->mapInstallmentInfo(new InstallmentInfo()); } public function getInstallmentDetails() { return $this->installmentDetails; } public function setInstallmentDetails($installmentDetails) { $this->installmentDetails = $installmentDetails; } }iyzipay-php/src/Iyzipay/Model/BasketItem.php000064400000005466150364332050015071 0ustar00id; } public function setId($id) { $this->id = $id; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getCategory1() { return $this->category1; } public function setCategory1($category1) { $this->category1 = $category1; } public function getCategory2() { return $this->category2; } public function setCategory2($category2) { $this->category2 = $category2; } public function getItemType() { return $this->itemType; } public function setItemType($itemType) { $this->itemType = $itemType; } public function getSubMerchantKey() { return $this->subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getSubMerchantPrice() { return $this->subMerchantPrice; } public function setSubMerchantPrice($subMerchantPrice) { $this->subMerchantPrice = $subMerchantPrice; } public function getJsonObject() { return JsonBuilder::create() ->add("id", $this->getId()) ->addPrice("price", $this->getPrice()) ->add("name", $this->getName()) ->add("category1", $this->getCategory1()) ->add("category2", $this->getCategory2()) ->add("itemType", $this->getItemType()) ->add("subMerchantKey", $this->getSubMerchantKey()) ->addPrice("subMerchantPrice", $this->getSubMerchantPrice()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("id", $this->getId()) ->appendPrice("price", $this->getPrice()) ->append("name", $this->getName()) ->append("category1", $this->getCategory1()) ->append("category2", $this->getCategory2()) ->append("itemType", $this->getItemType()) ->append("subMerchantKey", $this->getSubMerchantKey()) ->appendPrice("subMerchantPrice", $this->getSubMerchantPrice()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/UCSInitializeResource.php000064400000003636150364332050017222 0ustar00ucsToken; } public function setUcsToken($ucsToken) { $this->ucsToken = $ucsToken; } public function getBuyerProtectedConsumer() { return $this->buyerProtectedConsumer; } public function setBuyerProtectedConsumer($buyerProtectedConsumer) { $this->buyerProtectedConsumer = $buyerProtectedConsumer; } public function setBuyerProtectedMerchant($buyerProtectedMerchant) { $this->buyerProtectedMerchant = $buyerProtectedMerchant; } public function getBuyerProtectedMerchant() { return $this->buyerProtectedMerchant; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getGsmNumber() { return $this->gsmNumber; } public function setMaskedGsmNumber($maskedGsmNumber) { $this->maskedGsmNumber = $maskedGsmNumber; } public function getMaskedGsmNumber() { return $this->maskedGsmNumber; } public function setMerchantName($merchantName) { $this->merchantName = $merchantName; } public function getMerchantName() { return $this->merchantName; } public function setScript($script) { $this->script = $script; } public function getScript() { return $this->script; } public function setScriptType($scriptType) { $this->scriptType = $scriptType; } public function getScriptType() { return $this->scriptType; } }iyzipay-php/src/Iyzipay/Model/PaymentPostAuth.php000064400000001111150364332050016125 0ustar00post($options->getBaseUrl() . "/payment/postauth", parent::getHttpHeaders($request, $options), $request->toJsonString()); return PaymentPostAuthMapper::create($rawResult)->jsonDecode()->mapPaymentPostAuth(new PaymentPostAuth()); } }iyzipay-php/src/Iyzipay/Model/RefundReason.php000064400000000305150364332050015417 0ustar00installmentNumber; } public function setInstallmentNumber($installmentNumber) { $this->installmentNumber = $installmentNumber; } public function getTotalPrice() { return $this->totalPrice; } public function setTotalPrice($totalPrice) { $this->totalPrice = $totalPrice; } public function getJsonObject() { return JsonBuilder::create() ->add("installmentNumber", $this->getInstallmentNumber()) ->addPrice("totalPrice", $this->getTotalPrice()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("installmentNumber", $this->getInstallmentNumber()) ->appendPrice("totalPrice", $this->getTotalPrice()) ->getRequestString(); } } iyzipay-php/src/Iyzipay/Model/BankTransfer.php000064400000002723150364332050015412 0ustar00subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getIban() { return $this->iban; } public function setIban($iban) { $this->iban = $iban; } public function getContactName() { return $this->contactName; } public function setContactName($contactName) { $this->contactName = $contactName; } public function getContactSurname() { return $this->contactSurname; } public function setContactSurname($contactSurname) { $this->contactSurname = $contactSurname; } public function getLegalCompanyTitle() { return $this->legalCompanyTitle; } public function setLegalCompanyTitle($legalCompanyTitle) { $this->legalCompanyTitle = $legalCompanyTitle; } public function getMarketplaceSubMerchantType() { return $this->marketplaceSubMerchantType; } public function setMarketplaceSubMerchantType($marketplaceSubMerchantType) { $this->marketplaceSubMerchantType = $marketplaceSubMerchantType; } }iyzipay-php/src/Iyzipay/Model/CheckoutFormInitializePreAuth.php000064400000001320150364332050020726 0ustar00post($options->getBaseUrl() . "/payment/iyzipos/checkoutform/initialize/preauth/ecom", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CheckoutFormInitializePreAuthMapper::create($rawResult)->jsonDecode()->mapCheckoutFormInitializePreAuth(new CheckoutFormInitializePreAuth()); } }iyzipay-php/src/Iyzipay/Model/IyziupFormInitializeResource.php000064400000001333150364332050020675 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getContent() { return $this->content; } public function setContent($content) { $this->content = $content; } public function getTokenExpireTime() { return $this->tokenExpireTime; } public function setTokenExpireTime($tokenExpireTime) { $this->tokenExpireTime = $tokenExpireTime; } }iyzipay-php/src/Iyzipay/Model/RefundToBalanceResource.php000064400000000706150364332050017535 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getUrl() { return $this->url; } public function setUrl($url) { $this->url = $url; } }iyzipay-php/src/Iyzipay/Model/Address.php000064400000003510150364332050014412 0ustar00address; } public function setAddress($address) { $this->address = $address; } public function getZipCode() { return $this->zipCode; } public function setZipCode($zipCode) { $this->zipCode = $zipCode; } public function getContactName() { return $this->contactName; } public function setContactName($contactName) { $this->contactName = $contactName; } public function getCity() { return $this->city; } public function setCity($city) { $this->city = $city; } public function getCountry() { return $this->country; } public function setCountry($country) { $this->country = $country; } public function getJsonObject() { return JsonBuilder::create() ->add("address", $this->getAddress()) ->add("zipCode", $this->getZipCode()) ->add("contactName", $this->getContactName()) ->add("city", $this->getCity()) ->add("country", $this->getCountry()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("address", $this->getAddress()) ->append("zipCode", $this->getZipCode()) ->append("contactName", $this->getContactName()) ->append("city", $this->getCity()) ->append("country", $this->getCountry()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/CheckoutFormInitializeResource.php000064400000002036150364332050021152 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getCheckoutFormContent() { return $this->checkoutFormContent; } public function setCheckoutFormContent($checkoutFormContent) { $this->checkoutFormContent = $checkoutFormContent; } public function getTokenExpireTime() { return $this->tokenExpireTime; } public function setTokenExpireTime($tokenExpireTime) { $this->tokenExpireTime = $tokenExpireTime; } public function getPaymentPageUrl() { return $this->paymentPageUrl; } public function setPaymentPageUrl($paymentPageUrl) { $this->paymentPageUrl = $paymentPageUrl; } }iyzipay-php/src/Iyzipay/Model/IyziupAddress.php000064400000004754150364332050015637 0ustar00alias; } public function setAlias($alias) { $this->alias = $alias; } public function getAddressLine1() { return $this->addressLine1; } public function setAddressLine1($addressLine1) { $this->addressLine1 = $addressLine1; } public function getAddressLine2() { return $this->addressLine2; } public function setAddressLine2($addressLine2) { $this->addressLine2 = $addressLine2; } public function getZipCode() { return $this->zipCode; } public function setZipCode($zipCode) { $this->zipCode = $zipCode; } public function getContactName() { return $this->contactName; } public function setContactName($contactName) { $this->contactName = $contactName; } public function getCity() { return $this->city; } public function setCity($city) { $this->city = $city; } public function getCountry() { return $this->country; } public function setCountry($country) { $this->country = $country; } public function getJsonObject() { return JsonBuilder::create() ->add("alias", $this->getAlias()) ->add("addressLine1", $this->getAddressLine1()) ->add("addressLine2", $this->getAddressLine2()) ->add("zipCode", $this->getZipCode()) ->add("contactName", $this->getContactName()) ->add("city", $this->getCity()) ->add("country", $this->getCountry()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("alias", $this->getAlias()) ->append("addressLine1", $this->getAddressLine1()) ->append("addressLine2", $this->getAddressLine2()) ->append("zipCode", $this->getZipCode()) ->append("contactName", $this->getContactName()) ->append("city", $this->getCity()) ->append("country", $this->getCountry()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/PaymentResource.php000064400000012537150364332050016163 0ustar00price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getInstallment() { return $this->installment; } public function setInstallment($installment) { $this->installment = $installment; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getPaymentId() { return $this->paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getPaymentStatus() { return $this->paymentStatus; } public function setPaymentStatus($paymentStatus) { $this->paymentStatus = $paymentStatus; } public function getFraudStatus() { return $this->fraudStatus; } public function setFraudStatus($fraudStatus) { $this->fraudStatus = $fraudStatus; } public function getMerchantCommissionRate() { return $this->merchantCommissionRate; } public function setMerchantCommissionRate($merchantCommissionRate) { $this->merchantCommissionRate = $merchantCommissionRate; } public function getMerchantCommissionRateAmount() { return $this->merchantCommissionRateAmount; } public function setMerchantCommissionRateAmount($merchantCommissionRateAmount) { $this->merchantCommissionRateAmount = $merchantCommissionRateAmount; } public function getIyziCommissionRateAmount() { return $this->iyziCommissionRateAmount; } public function setIyziCommissionRateAmount($iyziCommissionRateAmount) { $this->iyziCommissionRateAmount = $iyziCommissionRateAmount; } public function getIyziCommissionFee() { return $this->iyziCommissionFee; } public function setIyziCommissionFee($iyziCommissionFee) { $this->iyziCommissionFee = $iyziCommissionFee; } public function getCardType() { return $this->cardType; } public function setCardType($cardType) { $this->cardType = $cardType; } public function getCardAssociation() { return $this->cardAssociation; } public function setCardAssociation($cardAssociation) { $this->cardAssociation = $cardAssociation; } public function getCardFamily() { return $this->cardFamily; } public function setCardFamily($cardFamily) { $this->cardFamily = $cardFamily; } public function getCardToken() { return $this->cardToken; } public function setCardToken($cardToken) { $this->cardToken = $cardToken; } public function getCardUserKey() { return $this->cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getBinNumber() { return $this->binNumber; } public function setBinNumber($binNumber) { $this->binNumber = $binNumber; } public function getBasketId() { return $this->basketId; } public function setBasketId($basketId) { $this->basketId = $basketId; } public function getPaymentItems() { return $this->paymentItems; } public function setPaymentItems($paymentItems) { $this->paymentItems = $paymentItems; } public function getConnectorName() { return $this->connectorName; } public function setConnectorName($connectorName) { $this->connectorName = $connectorName; } public function getAuthCode() { return $this->authCode; } public function setAuthCode($authCode) { $this->authCode = $authCode; } public function getPhase() { return $this->phase; } public function setPhase($phase) { $this->phase = $phase; } public function getLastFourDigits() { return $this->lastFourDigits; } public function setLastFourDigits($lastFourDigits) { $this->lastFourDigits = $lastFourDigits; } public function getPosOrderId() { return $this->posOrderId; } public function setPosOrderId($posOrderId) { $this->posOrderId = $posOrderId; } }iyzipay-php/src/Iyzipay/Model/PaymentChannel.php000064400000000545150364332050015740 0ustar00post($options->getBaseUrl() . "/reporting/settlement/bounced", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BouncedBankTransferListMapper::create($rawResult)->jsonDecode()->mapBouncedBankTransferList(new BouncedBankTransferList()); } public function getBankTransfers() { return $this->bankTransfers; } public function setBankTransfers($bankTransfers) { $this->bankTransfers = $bankTransfers; } }iyzipay-php/src/Iyzipay/Model/ReportingPaymentTransaction.php000064400000001450150364332050020543 0ustar00getBaseUrl() . "/v2/reporting/payment/transactions" . RequestStringBuilder::requestToStringQuery($request, 'reportingTransaction'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options)); return ReportingPaymentTransactionMapper::create($rawResult)->jsonDecode()->mapReportingPaymentTransaction(new ReportingPaymentTransaction()); } }iyzipay-php/src/Iyzipay/Model/RefundChargedFromMerchant.php000064400000001176150364332050020042 0ustar00post($options->getBaseUrl() . "/payment/iyzipos/refund/merchant/charge", parent::getHttpHeaders($request, $options), $request->toJsonString()); return RefundChargedFromMerchantMapper::create($rawResult)->jsonDecode()->mapRefundChargedFromMerchant(new RefundChargedFromMerchant()); } }iyzipay-php/src/Iyzipay/Model/BkmInitialize.php000064400000001746150364332050015571 0ustar00post($options->getBaseUrl() . "/payment/bkm/initialize", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BkmInitializeMapper::create($rawResult)->jsonDecode()->mapBkmInitialize(new BkmInitialize()); } public function getHtmlContent() { return $this->htmlContent; } public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } public function getToken() { return $this->token; } public function setToken($token) { $this->token = $token; } } iyzipay-php/src/Iyzipay/Model/PaymentGroup.php000064400000000236150364332050015461 0ustar00post($options->getBaseUrl() . "/payment/settlement-to-balance/init", parent::getHttpHeaders($request, $options), $request->toJsonString()); return SettlementToBalanceMapper::create($rawResult)->jsonDecode()->mapSettlementToBalance(new SettlementToBalance()); } }iyzipay-php/src/Iyzipay/Model/Reward.php000064400000002141150364332050014250 0ustar00rewardAmount; } public function setRewardAmount($rewardAmount) { $this->rewardAmount = $rewardAmount; } public function getRewardUsage() { return $this->rewardUsage; } public function setRewardUsage($rewardUsage) { $this->rewardUsage = $rewardUsage; } public function getJsonObject() { return JsonBuilder::create() ->add("rewardAmount", $this->getRewardAmount()) ->add("rewardUsage", $this->getRewardUsage()) ->getObject(); } /** * @codeCoverageIgnore */ public function toPKIRequestString() { return RequestStringBuilder::create() ->append("rewardAmount", $this->getRewardAmount()) ->append("rewardUsage", $this->getRewardUsage()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/CheckoutFormInitialize.php000064400000001252150364332050017441 0ustar00post($options->getBaseUrl() . "/payment/iyzipos/checkoutform/initialize/auth/ecom", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CheckoutFormInitializeMapper::create($rawResult)->jsonDecode()->mapCheckoutFormInitialize(new CheckoutFormInitialize()); } }iyzipay-php/src/Iyzipay/Model/Card.php000064400000006600150364332050013701 0ustar00post($options->getBaseUrl() . "/cardstorage/card", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CardMapper::create($rawResult)->jsonDecode()->mapCard(new Card()); } public static function delete(DeleteCardRequest $request, Options $options) { $rawResult = parent::httpClient()->delete($options->getBaseUrl() . "/cardstorage/card", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CardMapper::create($rawResult)->jsonDecode()->mapCard(new Card()); } public function getExternalId() { return $this->externalId; } public function setExternalId($externalId) { $this->externalId = $externalId; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getCardUserKey() { return $this->cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getCardToken() { return $this->cardToken; } public function setCardToken($cardToken) { $this->cardToken = $cardToken; } public function getCardAlias() { return $this->cardAlias; } public function setCardAlias($cardAlias) { $this->cardAlias = $cardAlias; } public function getBinNumber() { return $this->binNumber; } public function setBinNumber($binNumber) { $this->binNumber = $binNumber; } public function getLastFourDigits() { return $this->lastFourDigits; } public function setLastFourDigits($lastFourDigits) { $this->lastFourDigits = $lastFourDigits; } public function getCardType() { return $this->cardType; } public function setCardType($cardType) { $this->cardType = $cardType; } public function getCardAssociation() { return $this->cardAssociation; } public function setCardAssociation($cardAssociation) { $this->cardAssociation = $cardAssociation; } public function getCardFamily() { return $this->cardFamily; } public function setCardFamily($cardFamily) { $this->cardFamily = $cardFamily; } public function getCardBankCode() { return $this->cardBankCode; } public function setCardBankCode($cardBankCode) { $this->cardBankCode = $cardBankCode; } public function getCardBankName() { return $this->cardBankName; } public function setCardBankName($cardBankName) { $this->cardBankName = $cardBankName; } } iyzipay-php/src/Iyzipay/Model/IyziupForm.php000064400000004170150364332050015145 0ustar00post($options->getBaseUrl() . "/v1/iyziup/form/order/retrieve", parent::getHttpHeaders($request, $options), $request->toJsonString()); return IyziupFormMapper::create($rawResult)->jsonDecode()->mapIyziupForm(new IyziupForm()); } public function getOrderResponseStatus() { return $this->orderResponseStatus; } public function setOrderResponseStatus($orderResponseStatus) { $this->orderResponseStatus = $orderResponseStatus; } 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; } public function getConsumer() { return $this->consumer; } public function setConsumer($consumer) { $this->consumer = $consumer; } public function getShippingAddress() { return $this->shippingAddress; } public function setShippingAddress($shippingAddress) { $this->shippingAddress = $shippingAddress; } public function getBillingAddress() { return $this->billingAddress; } public function setBillingAddress($billingAddress) { $this->billingAddress = $billingAddress; } public function getPaymentDetail() { return $this->paymentDetail; } public function setPaymentDetail($paymentDetail) { $this->paymentDetail = $paymentDetail; } }iyzipay-php/src/Iyzipay/Model/ProtectedOverleyScript.php000064400000002233150364332050017512 0ustar00post($options->getBaseUrl() . "/v1/iyziup/protected/shop/detail/overlay-script", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ProtectedOverleyScriptMapper::create($rawResult)->jsonDecode()->mapProtectedOverleyScript(new ProtectedOverleyScript()); } public function getProtectedShopId() { return $this->protectedShopId; } public function setProtectedShopId($protectedShopId) { $this->protectedShopId = $protectedShopId; } public function getOverlayScript() { return $this->overlayScript; } public function setOverlayScript($overlayScript) { $this->overlayScript = $overlayScript; } }iyzipay-php/src/Iyzipay/Model/ThreedsInitializePreAuth.php000064400000001560150364332050017741 0ustar00post($options->getBaseUrl() . "/payment/3dsecure/initialize/preauth", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ThreedsInitializePreAuthMapper::create($rawResult)->jsonDecode()->mapThreedsInitializePreAuth(new ThreedsInitializePreAuth()); } public function getHtmlContent() { return $this->htmlContent; } public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } } iyzipay-php/src/Iyzipay/Model/PayWithIyzicoInitializeResource.php000064400000002112150364332050021330 0ustar00token; } public function setToken($token) { $this->token = $token; } public function getPayWithIyzicoContent() { return $this->payWithIyzicoContent; } public function setPayWithIyzicoContent($payWithIyzicoContent) { $this->payWithIyzicoContent = $payWithIyzicoContent; } public function getTokenExpireTime() { return $this->tokenExpireTime; } public function setTokenExpireTime($tokenExpireTime) { $this->tokenExpireTime = $tokenExpireTime; } public function getPayWithIyzicoPageUrl() { return $this->payWithIyzicoPageUrl; } public function setPaymentPageUrl($payWithIyzicoPageUrl) { $this->payWithIyzicoPageUrl = $payWithIyzicoPageUrl; } }iyzipay-php/src/Iyzipay/Model/CrossBookingToSubMerchant.php000064400000001223150364332050020065 0ustar00post($options->getBaseUrl() . "/crossbooking/send", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CrossBookingToSubMerchantMapper::create($rawResult)->jsonDecode()->mapCrossBookingToSubMerchant(new CrossBookingToSubMerchant()); } }iyzipay-php/src/Iyzipay/Model/Currency.php000064400000000352150364332050014620 0ustar00redirectUrl; } public function setRedirectUrl($redirectUrl) { $this->redirectUrl = $redirectUrl; } public function getPrice() { return $this->price; } public function setPrice($price) { $this->price = $price; } public function getPaidPrice() { return $this->paidPrice; } public function setPaidPrice($paidPrice) { $this->paidPrice = $paidPrice; } public function getPaymentId() { return $this->paymentId; } public function setPaymentId($paymentId) { $this->paymentId = $paymentId; } public function getMerchantCommissionRate() { return $this->merchantCommissionRate; } public function setMerchantCommissionRate($merchantCommissionRate) { $this->merchantCommissionRate = $merchantCommissionRate; } public function getMerchantCommissionRateAmount() { return $this->merchantCommissionRateAmount; } public function setMerchantCommissionRateAmount($merchantCommissionRateAmount) { $this->merchantCommissionRateAmount = $merchantCommissionRateAmount; } public function getIyziCommissionRateAmount() { return $this->iyziCommissionRateAmount; } public function setIyziCommissionRateAmount($iyziCommissionRateAmount) { $this->iyziCommissionRateAmount = $iyziCommissionRateAmount; } public function getIyziCommissionFee() { return $this->iyziCommissionFee; } public function setIyziCommissionFee($iyziCommissionFee) { $this->iyziCommissionFee = $iyziCommissionFee; } public function getBasketId() { return $this->basketId; } public function setBasketId($basketId) { $this->basketId = $basketId; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } public function getPaymentItems() { return $this->paymentItems; } public function setPaymentItems($paymentItems) { $this->paymentItems = $paymentItems; } public function getPhase() { return $this->phase; } public function setPhase($phase) { $this->phase = $phase; } public function getAccountHolderName() { return $this->accountHolderName; } public function setAccountHolderName($accountHolderName) { $this->accountHolderName = $accountHolderName; } public function getAccountNumber() { return $this->accountNumber; } public function setAccountNumber($accountNumber) { $this->accountNumber = $accountNumber; } public function getBankName() { return $this->bankName; } public function setBankName($bankName) { $this->bankName = $bankName; } public function getBankCode() { return $this->bankCode; } public function setBankCode($bankCode) { $this->bankCode = $bankCode; } public function getBic() { return $this->bic; } public function setBic($bic) { $this->bic = $bic; } public function getPaymentPurpose() { return $this->paymentPurpose; } public function setPaymentPurpose($paymentPurpose) { $this->paymentPurpose = $paymentPurpose; } public function getIban() { return $this->iban; } public function setIban($iban) { $this->iban = $iban; } public function getCountryCode() { return $this->countryCode; } public function setCountryCode($countryCode) { $this->countryCode = $countryCode; } public function getApm() { return $this->apm; } public function setApm($apm) { $this->apm = $apm; } public function getMobilePhone() { return $this->mobilePhone; } public function setMobilePhone($mobilePhone) { $this->mobilePhone = $mobilePhone; } public function getPaymentStatus() { return $this->paymentStatus; } public function setPaymentStatus($paymentStatus) { $this->paymentStatus = $paymentStatus; } }iyzipay-php/src/Iyzipay/Model/OrderItemType.php000064400000000170150364332050015560 0ustar00getBaseUrl() . "/v2/subscription/customers"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionCustomerMapper::create($rawResult)->jsonDecode()->mapSubscriptionCustomer(new SubscriptionCustomer()); } public static function retrieve(SubscriptionRetrieveCustomerRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/customers/".$request->getCustomerReferenceCode().RequestStringBuilder::requestToStringQuery($request, 'defaultParams'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return SubscriptionCustomerMapper::create($rawResult)->jsonDecode()->mapSubscriptionCustomer(new SubscriptionCustomer()); } public static function update(SubscriptionUpdateCustomerRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/customers/".$request->getCustomerReferenceCode(); $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionCustomerMapper::create($rawResult)->jsonDecode()->mapSubscriptionCustomer(new SubscriptionCustomer()); } public function setReferenceCode($referenceCode) { $this->referenceCode = $referenceCode; } public function getReferenceCode() { return $this->referenceCode; } public function setCustomerStatus($customerStatus) { $this->customerStatus = $customerStatus; } public function getCustomerStatus() { return $this->customerStatus; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getSurname() { return $this->surname; } public function setSurname($surname) { $this->surname = $surname; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getCreatedDate() { return $this->createdDate; } public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; } public function getShippingContactName(){ return $this->shippingContactName; } public function setShippingContactName($shippingContactName){ return $this->shippingContactName = $shippingContactName; } public function getShippingCity(){ return $this->shippingCity; } public function setShippingCity($shippingCity){ return $this->shippingCity = $shippingCity; } public function getShippingCountry(){ return $this->shippingCountry; } public function setShippingCountry($shippingCountry){ return $this->shippingCountry = $shippingCountry; } public function getShippingAddress(){ return $this->shippingAddress; } public function setShippingAddress($shippingAddress){ return $this->shippingAddress = $shippingAddress; } public function getShippingZipCode(){ return $this->shippingZipCode; } public function setShippingZipCode($shippingZipCode){ return $this->shippingZipCode = $shippingZipCode; } public function getBillingContactName(){ return $this->billingContactName; } public function setBillingContactName($billingContactName){ return $this->billingContactName = $billingContactName; } public function getBillingCity(){ return $this->billingCity; } public function setBillingCity($billingCity){ return $this->billingCity = $billingCity; } public function getBillingCountry(){ return $this->billingCountry; } public function setBillingCountry($billingCountry){ return $this->billingCountry = $billingCountry; } public function getBillingAddress(){ return $this->billingAddress; } public function setBillingAddress($billingAddress){ return $this->billingAddress = $billingAddress; } public function getBillingZipCode(){ return $this->billingZipCode; } public function setBillingZipCode($billingZipCode){ return $this->billingZipCode = $billingZipCode; } public function getBillingDistrict() { return $this->billingDistrict; } public function setBillingDistrict($billingDistrict) { $this->billingDistrict = $billingDistrict; } public function getShippingDistrict() { return $this->shippingDistrict; } public function setShippingDistrict($shippingDistrict) { $this->shippingDistrict = $shippingDistrict; } public function getContactEmail() { return $this->contactEmail; } public function setContactEmail($contactEmail) { $this->contactEmail = $contactEmail; } public function getContactGsmNumber() { return $this->contactGsmNumber; } public function setContactGsmNumber($contactGsmNumber) { $this->contactGsmNumber = $contactGsmNumber; } } iyzipay-php/src/Iyzipay/Model/Subscription/RetrieveSubscriptionCheckoutForm.php000064400000006423150364332050024223 0ustar00getBaseUrl() . "/v2/subscription/checkoutform/".$request->getCheckoutFormToken(); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return RetrieveSubscriptionCheckoutFormMapper::create($rawResult)->jsonDecode()->mapSubscriptionCreateCheckoutForm(new RetrieveSubscriptionCheckoutForm()); } public function getReferenceCode(){ return $this->referenceCode; } public function setReferenceCode($referenceCode){ $this->referenceCode = $referenceCode; } public function getParentReferenceCode(){ return $this->parentReferenceCode; } public function setParentReferenceCode($parentReferenceCode){ $this->parentReferenceCode = $parentReferenceCode; } public function getPricingPlanReferenceCode(){ return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode){ $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getCustomerReferenceCode(){ return $this->customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode){ $this->customerReferenceCode= $customerReferenceCode; } public function getSubscriptionStatus(){ return $this->subscriptionStatus; } public function setSubscriptionStatus($subscriptionStatus){ $this->subscriptionStatus = $subscriptionStatus; } public function getTrialDays(){ return $this->trialDays; } public function setTrialDays($trialDays){ $this->trialDays = $trialDays; } public function getTrialStartDate(){ return $this->trialStartDate; } public function setTrialStartDate($trialStartDate){ $this->trialStartDate = $trialStartDate; } public function getTrialEndDate(){ return $this->trialEndDate; } public function setTrialEndDate($trialEndDate){ $this->trialEndDate = $trialEndDate; } public function getCreatedDate(){ return $this->createdDate; } public function setCreatedDate($createdDate){ $this->createdDate = $createdDate; } public function getStartDate(){ return $this->startDate; } public function setStartDate($startDate){ $this->startDate = $startDate; } public function getEndDate(){ return $this->endDate; } public function setEndDate($endDate){ $this->endDate = $endDate; } } iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionProduct.php000064400000007305150364332050021544 0ustar00getBaseUrl() . "/v2/subscription/products"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionProductMapper::create($rawResult)->jsonDecode()->mapSubscriptionProduct(new SubscriptionProduct()); } public static function retrieve(SubscriptionRetrieveProductRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/products/".$request->getProductReferenceCode().RequestStringBuilder::requestToStringQuery($request, 'defaultParams'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return SubscriptionProductMapper::create($rawResult)->jsonDecode()->mapSubscriptionProduct(new SubscriptionProduct()); } public static function update(SubscriptionUpdateProductRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/products/".$request->getProductReferenceCode(); $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionProductMapper::create($rawResult)->jsonDecode()->mapSubscriptionProduct(new SubscriptionProduct()); } public static function delete(SubscriptionDeleteProductRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/products/".$request->getProductReferenceCode().RequestStringBuilder::requestToStringQuery($request, 'defaultParams'); $rawResult = parent::httpClient()->delete($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionProductMapper::create($rawResult)->jsonDecode()->mapSubscriptionProduct(new SubscriptionProduct()); } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getProductStatus() { return $this->productStatus; } public function setProductStatus($productStatus) { $this->productStatus = $productStatus; } public function getDescription() { return $this->description; } public function setDescription($description) { $this->description = $description; } public function getReferenceCode() { return $this->referenceCode; } public function setReferenceCode($referenceCode) { $this->referenceCode = $referenceCode; } public function getCreatedDate() { return $this->createdDate; } public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; } public function getPricingPlans() { return $this->pricingPlans; } public function setPricingPlans($pricingPlans) { $this->pricingPlans = $pricingPlans; } } iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionCreate.php000064400000006200150364332050021320 0ustar00getBaseUrl() . "/v2/subscription/initialize"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionCreateMapper::create($rawResult)->jsonDecode()->mapSubscriptionCreate(new SubscriptionCreate()); } public function getReferenceCode(){ return $this->referenceCode; } public function setReferenceCode($referenceCode){ $this->referenceCode = $referenceCode; } public function getParentReferenceCode(){ return $this->parentReferenceCode; } public function setParentReferenceCode($parentReferenceCode){ $this->parentReferenceCode = $parentReferenceCode; } public function getPricingPlanReferenceCode(){ return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode){ $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getCustomerReferenceCode(){ return $this->customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode){ $this->customerReferenceCode= $customerReferenceCode; } public function getSubscriptionStatus(){ return $this->subscriptionStatus; } public function setSubscriptionStatus($subscriptionStatus){ $this->subscriptionStatus = $subscriptionStatus; } public function getTrialDays(){ return $this->trialDays; } public function setTrialDays($trialDays){ $this->trialDays = $trialDays; } public function getTrialStartDate(){ return $this->trialStartDate; } public function setTrialStartDate($trialStartDate){ $this->trialStartDate = $trialStartDate; } public function getTrialEndDate(){ return $this->trialEndDate; } public function setTrialEndDate($trialEndDate){ $this->trialEndDate = $trialEndDate; } public function getCreatedDate(){ return $this->createdDate; } public function setCreatedDate($createdDate){ $this->createdDate = $createdDate; } public function getStartDate(){ return $this->startDate; } public function setStartDate($startDate){ $this->startDate = $startDate; } public function getEndDate(){ return $this->endDate; } public function setEndDate($endDate){ $this->endDate = $endDate; } } iyzipay-php/src/Iyzipay/Model/Subscription/RetrieveList.php000064400000006371150364332050020142 0ustar00getBaseUrl() . "/v2/subscription/products".RequestStringBuilder::requestToStringQuery($request, 'subscriptionItems'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return RetrieveListMapper::create($rawResult)->jsonDecode()->mapRetrieveList(new RetrieveList()); } public static function pricingPlan(SubscriptionListPricingPlanRequest $request, Options $options) { $uri = $options->getBaseUrl() . "/v2/subscription/products/".$request->getProductReferenceCode()."/pricing-plans".RequestStringBuilder::requestToStringQuery($request, 'subscriptionItems'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return RetrieveListMapper::create($rawResult)->jsonDecode()->mapRetrieveList(new RetrieveList()); } public static function customers(SubscriptionListCustomersRequest $request, Options $options) { $uri = $options->getBaseUrl() . "/v2/subscription/customers".RequestStringBuilder::requestToStringQuery($request, 'subscriptionItems'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return RetrieveListMapper::create($rawResult)->jsonDecode()->mapRetrieveList(new RetrieveList()); } public static function subscriptions(SubscriptionSearchRequest $request, Options $options) { $uri = $options->getBaseUrl() . "/v2/subscription/subscriptions".RequestStringBuilder::requestToStringQuery($request, 'searchSubscription'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return RetrieveListMapper::create($rawResult)->jsonDecode()->mapRetrieveList(new RetrieveList()); } public function getTotalCount() { return $this->totalCount; } public function setTotalCount($totalCount) { $this->totalCount = $totalCount; } public function getCurrentPage() { return $this->currentPage; } public function setCurrentPage($currentPage) { $this->currentPage = $currentPage; } public function getPageCount() { return $this->pageCount; } public function setPageCount($pageCount) { $this->pageCount = $pageCount; } public function getItems() { return $this->items; } public function setItems($items) { $this->items = $items; } }iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionDetails.php000064400000010765150364332050021515 0ustar00getBaseUrl() . "/v2/subscription/subscriptions/".$request->getSubscriptionReferenceCode().RequestStringBuilder::requestToStringQuery($request, 'defaultParams');; $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return SubscriptionDetailsMapper::create($rawResult)->jsonDecode()->mapSubscriptionDetails(new SubscriptionDetails()); } public function getProductReferenceCode() { return $this->productReferenceCode; } public function setProductReferenceCode($productReferenceCode) { $this->productReferenceCode = $productReferenceCode; } public function getProductName() { return $this->productName; } public function setProductName($productName) { $this->productName = $productName; } public function getPricingPlanName() { return $this->pricingPlanName; } public function setPricingPlanName($pricingPlanName) { $this->pricingPlanName = $pricingPlanName; } public function getCustomerEmail() { return $this->customerEmail; } public function setCustomerEmail($customerEmail) { $this->customerEmail = $customerEmail; } public function getOrders() { return $this->orders; } public function setOrders($orders) { $this->orders = $orders; } public function getReferenceCode() { return $this->referenceCode; } public function setReferenceCode($referenceCode) { $this->referenceCode = $referenceCode; } public function getParentReferenceCode() { return $this->parentReferenceCode; } public function setParentReferenceCode($parentReferenceCode) { $this->parentReferenceCode = $parentReferenceCode; } public function getPricingPlanReferenceCode() { return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode) { $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getCustomerReferenceCode() { return $this->customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode) { $this->customerReferenceCode= $customerReferenceCode; } public function getSubscriptionStatus() { return $this->subscriptionStatus; } public function setSubscriptionStatus($subscriptionStatus) { $this->subscriptionStatus = $subscriptionStatus; } public function getTrialDays() { return $this->trialDays; } public function setTrialDays($trialDays) { $this->trialDays = $trialDays; } public function getTrialStartDate() { return $this->trialStartDate; } public function setTrialStartDate($trialStartDate) { $this->trialStartDate = $trialStartDate; } public function getTrialEndDate() { return $this->trialEndDate; } public function setTrialEndDate($trialEndDate) { $this->trialEndDate = $trialEndDate; } public function getCreatedDate() { return $this->createdDate; } public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; } public function getStartDate() { return $this->startDate; } public function setStartDate($startDate) { $this->startDate = $startDate; } public function getEndDate(){ return $this->endDate; } public function setEndDate($endDate){ $this->endDate = $endDate; } } iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionRetry.php000064400000001276150364332050021232 0ustar00getBaseUrl() . "/v2/subscription/operation/retry"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionActionMapper::create($rawResult)->jsonDecode()->mapSubscriptionAction(new SubscriptionRetry()); } }iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionCreateCheckoutForm.php000064400000002723150364332050023640 0ustar00getBaseUrl() . "/v2/subscription/checkoutform/initialize"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionCreateCheckoutFormMapper::create($rawResult)->jsonDecode()->mapSubscriptionCreateCheckoutForm(new SubscriptionCreateCheckoutForm()); } public function getToken() { return $this->token; } public function setToken($token) { $this->token = $token; } public function getCheckoutFormContent() { return $this->checkoutFormContent; } public function setCheckoutFormContent($checkoutFormContent) { $this->checkoutFormContent = $checkoutFormContent; } public function getTokenExpireTime() { return $this->tokenExpireTime; } public function setTokenExpireTime($tokenExpireTime) { $this->tokenExpireTime = $tokenExpireTime; } } iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionPricingPlan.php000064400000012536150364332050022334 0ustar00getBaseUrl() . "/v2/subscription/products/".$request->getProductReferenceCode()."/pricing-plans"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionPricingPlanMapper::create($rawResult)->jsonDecode()->mapSubscriptionPricingPlan(new SubscriptionPricingPlan()); } public static function retrieve(SubscriptionRetrievePricingPlanRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/pricing-plans/".$request->getPricingPlanReferenceCode().RequestStringBuilder::requestToStringQuery($request, 'defaultParams'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options), $request->toJsonString()); return SubscriptionPricingPlanMapper::create($rawResult)->jsonDecode()->mapSubscriptionPricingPlan(new SubscriptionPricingPlan()); } public static function update(SubscriptionUpdatePricingPlanRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/pricing-plans/".$request->getPricingPlanReferenceCode(); $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionPricingPlanMapper::create($rawResult)->jsonDecode()->mapSubscriptionPricingPlan(new SubscriptionPricingPlan()); } public static function delete(SubscriptionDeletePricingPlanRequest $request, $options) { $uri = $options->getBaseUrl() . "/v2/subscription/pricing-plans/".$request->getPricingPlanReferenceCode().RequestStringBuilder::requestToStringQuery($request, 'defaultParams'); $rawResult = parent::httpClient()->delete($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionPricingPlanMapper::create($rawResult)->jsonDecode()->mapSubscriptionPricingPlan(new SubscriptionPricingPlan()); } public function getPricingPlanStatus() { return $this->pricingPlanStatus; } public function setPricingPlanStatus($pricingPlanStatus) { $this->pricingPlanStatus = $pricingPlanStatus; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getProductReferenceCode() { return $this->productReferenceCode; } public function setProductReferenceCode($productReferenceCode) { $this->productReferenceCode = $productReferenceCode; } public function getReferenceCode() { return $this->referenceCode; } public function setReferenceCode($referenceCode) { $this->referenceCode = $referenceCode; } public function getPrice() { return $this->price; } public function SetPrice($price) { $this->price = $price; } public function getCurrencyCode() { return $this->currencyCode; } public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } public function getPaymentInterval() { return $this->paymentInterval; } public function setPaymentInterval($paymentInterval) { $this->paymentInterval = $paymentInterval; } public function getPaymentIntervalCount() { return $this->paymentIntervalCount; } public function setPaymentIntervalCount($paymentIntervalCount) { $this->paymentIntervalCount = $paymentIntervalCount; } public function getTrialPeriodDays () { return $this->trialPeriodDays ; } public function setTrialPeriodDays ($trialPeriodDays) { $this->trialPeriodDays = $trialPeriodDays; } public function getPlanPaymentType() { return $this->planPaymentType; } public function setPlanPaymentType($planPaymentType) { $this->planPaymentType = $planPaymentType; } public function getRecurrenceCount() { return $this->recurrenceCount; } public function setRecurrenceCount($recurrenceCount) { $this->recurrenceCount = $recurrenceCount; } public function getCreatedDate() { return $this->createdDate; } public function setCreatedDate($createdDate) { $this->createdDate = $createdDate; } } iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionCancel.php000064400000001373150364332050021310 0ustar00getBaseUrl() . "/v2/subscription/subscriptions/" . $request->getSubscriptionReferenceCode()."/cancel"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionActionMapper::create($rawResult)->jsonDecode()->mapSubscriptionAction(new SubscriptionCancel()); } } iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionUpgrade.php000064400000006302150364332050021507 0ustar00getBaseUrl() . "/v2/subscription/subscriptions/" . $request->getSubscriptionReferenceCode() . "/upgrade"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionUpgradeMapper::create($rawResult)->jsonDecode()->mapSubscriptionUpgrade(new SubscriptionUpgrade()); } public function getReferenceCode(){ return $this->referenceCode; } public function setReferenceCode($referenceCode){ $this->referenceCode = $referenceCode; } public function getParentReferenceCode(){ return $this->parentReferenceCode; } public function setParentReferenceCode($parentReferenceCode){ $this->parentReferenceCode = $parentReferenceCode; } public function getPricingPlanReferenceCode(){ return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode){ $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getCustomerReferenceCode(){ return $this->customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode){ $this->customerReferenceCode= $customerReferenceCode; } public function getSubscriptionStatus(){ return $this->subscriptionStatus; } public function setSubscriptionStatus($subscriptionStatus){ $this->subscriptionStatus = $subscriptionStatus; } public function getTrialDays(){ return $this->trialDays; } public function setTrialDays($trialDays){ $this->trialDays = $trialDays; } public function getTrialStartDate(){ return $this->trialStartDate; } public function setTrialStartDate($trialStartDate){ $this->trialStartDate = $trialStartDate; } public function getTrialEndDate(){ return $this->trialEndDate; } public function setTrialEndDate($trialEndDate){ $this->trialEndDate = $trialEndDate; } public function getCreatedDate(){ return $this->createdDate; } public function setCreatedDate($createdDate){ $this->createdDate = $createdDate; } public function getStartDate(){ return $this->startDate; } public function setStartDate($startDate){ $this->startDate = $startDate; } public function getEndDate(){ return $this->endDate; } public function setEndDate($endDate){ $this->endDate = $endDate; } }iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionCreateWithCustomer.php000064400000006261150364332050023705 0ustar00getBaseUrl() . "/v2/subscription/initialize/with-customer"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionCreateMapper::create($rawResult)->jsonDecode()->mapSubscriptionCreate(new SubscriptionCreate()); } public function getReferenceCode(){ return $this->referenceCode; } public function setReferenceCode($referenceCode){ $this->referenceCode = $referenceCode; } public function getParentReferenceCode(){ return $this->parentReferenceCode; } public function setParentReferenceCode($parentReferenceCode){ $this->parentReferenceCode = $parentReferenceCode; } public function getPricingPlanReferenceCode(){ return $this->pricingPlanReferenceCode; } public function setPricingPlanReferenceCode($pricingPlanReferenceCode){ $this->pricingPlanReferenceCode = $pricingPlanReferenceCode; } public function getCustomerReferenceCode(){ return $this->customerReferenceCode; } public function setCustomerReferenceCode($customerReferenceCode){ $this->customerReferenceCode= $customerReferenceCode; } public function getSubscriptionStatus(){ return $this->subscriptionStatus; } public function setSubscriptionStatus($subscriptionStatus){ $this->subscriptionStatus = $subscriptionStatus; } public function getTrialDays(){ return $this->trialDays; } public function setTrialDays($trialDays){ $this->trialDays = $trialDays; } public function getTrialStartDate(){ return $this->trialStartDate; } public function setTrialStartDate($trialStartDate){ $this->trialStartDate = $trialStartDate; } public function getTrialEndDate(){ return $this->trialEndDate; } public function setTrialEndDate($trialEndDate){ $this->trialEndDate = $trialEndDate; } public function getCreatedDate(){ return $this->createdDate; } public function setCreatedDate($createdDate){ $this->createdDate = $createdDate; } public function getStartDate(){ return $this->startDate; } public function setStartDate($startDate){ $this->startDate = $startDate; } public function getEndDate(){ return $this->endDate; } public function setEndDate($endDate){ $this->endDate = $endDate; } }iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionCardUpdate.php000064400000004046150364332050022137 0ustar00getBaseUrl() . "/v2/subscription/card-update/checkoutform/initialize"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionCardUpdateMapper::create($rawResult)->jsonDecode()->mapSubscriptionCardUpdate(new SubscriptionCardUpdate()); } public static function updateWithSubscriptionReferenceCode(SubscriptionCardUpdateWithSubscriptionReferenceCodeRequest $request, Options $options) { $uri = $options->getBaseUrl() . "/v2/subscription/card-update/checkoutform/initialize/with-subscription"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionCardUpdateMapper::create($rawResult)->jsonDecode()->mapSubscriptionCardUpdate(new SubscriptionCardUpdate()); } public function getToken() { return $this->token; } public function setToken($token) { $this->token = $token; } public function getCheckoutFormContent() { return $this->checkoutFormContent; } public function setCheckoutFormContent($checkoutFormContent) { $this->checkoutFormContent = $checkoutFormContent; } public function getTokenExpireTime() { return $this->tokenExpireTime; } public function setTokenExpireTime($tokenExpireTime) { $this->tokenExpireTime = $tokenExpireTime; } } iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionActivate.php000064400000001402150364332050021654 0ustar00getBaseUrl() . "/v2/subscription/subscriptions/" . $request->getSubscriptionReferenceCode()."/activate"; $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString()); return SubscriptionActionMapper::create($rawResult)->jsonDecode()->mapSubscriptionAction(new SubscriptionActivate()); } }iyzipay-php/src/Iyzipay/Model/Buyer.php000064400000010431150364332050014113 0ustar00id; } public function setId($id) { $this->id = $id; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getSurname() { return $this->surname; } public function setSurname($surname) { $this->surname = $surname; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getRegistrationDate() { return $this->registrationDate; } public function setRegistrationDate($registrationDate) { $this->registrationDate = $registrationDate; } public function getLastLoginDate() { return $this->lastLoginDate; } public function setLastLoginDate($lastLoginDate) { $this->lastLoginDate = $lastLoginDate; } public function getRegistrationAddress() { return $this->registrationAddress; } public function setRegistrationAddress($registrationAddress) { $this->registrationAddress = $registrationAddress; } public function getCity() { return $this->city; } public function setCity($city) { $this->city = $city; } public function getCountry() { return $this->country; } public function setCountry($country) { $this->country = $country; } public function getZipCode() { return $this->zipCode; } public function setZipCode($zipCode) { $this->zipCode = $zipCode; } public function getIp() { return $this->ip; } public function setIp($ip) { $this->ip = $ip; } public function getJsonObject() { return JsonBuilder::create() ->add("id", $this->getId()) ->add("name", $this->getName()) ->add("surname", $this->getSurname()) ->add("identityNumber", $this->getIdentityNumber()) ->add("email", $this->getEmail()) ->add("gsmNumber", $this->getGsmNumber()) ->add("registrationDate", $this->getRegistrationDate()) ->add("lastLoginDate", $this->getLastLoginDate()) ->add("registrationAddress", $this->getRegistrationAddress()) ->add("city", $this->getCity()) ->add("country", $this->getCountry()) ->add("zipCode", $this->getZipCode()) ->add("ip", $this->getIp()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("id", $this->getId()) ->append("name", $this->getName()) ->append("surname", $this->getSurname()) ->append("identityNumber", $this->getIdentityNumber()) ->append("email", $this->getEmail()) ->append("gsmNumber", $this->getGsmNumber()) ->append("registrationDate", $this->getRegistrationDate()) ->append("lastLoginDate", $this->getLastLoginDate()) ->append("registrationAddress", $this->getRegistrationAddress()) ->append("city", $this->getCity()) ->append("country", $this->getCountry()) ->append("zipCode", $this->getZipCode()) ->append("ip", $this->getIp()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/CheckoutForm.php000064400000001736150364332050015426 0ustar00post($options->getBaseUrl() . "/payment/iyzipos/checkoutform/auth/ecom/detail", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CheckoutFormMapper::create($rawResult)->jsonDecode()->mapCheckoutForm(new CheckoutForm()); } 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; } }iyzipay-php/src/Iyzipay/Model/CardInformation.php000064400000004026150364332050016107 0ustar00cardAlias; } public function setCardAlias($cardAlias) { $this->cardAlias = $cardAlias; } public function getCardNumber() { return $this->cardNumber; } public function setCardNumber($cardNumber) { $this->cardNumber = $cardNumber; } public function getExpireYear() { return $this->expireYear; } public function setExpireYear($expireYear) { $this->expireYear = $expireYear; } public function getExpireMonth() { return $this->expireMonth; } public function setExpireMonth($expireMonth) { $this->expireMonth = $expireMonth; } public function getCardHolderName() { return $this->cardHolderName; } public function setCardHolderName($cardHolderName) { $this->cardHolderName = $cardHolderName; } public function getJsonObject() { return JsonBuilder::create() ->add("cardAlias", $this->getCardAlias()) ->add("cardNumber", $this->getCardNumber()) ->add("expireYear", $this->getExpireYear()) ->add("expireMonth", $this->getExpireMonth()) ->add("cardHolderName", $this->getCardHolderName()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("cardAlias", $this->getCardAlias()) ->append("cardNumber", $this->getCardNumber()) ->append("expireYear", $this->getExpireYear()) ->append("expireMonth", $this->getExpireMonth()) ->append("cardHolderName", $this->getCardHolderName()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/PayoutCompletedTransaction.php000064400000002274150364332050020357 0ustar00paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getPayoutAmount() { return $this->payoutAmount; } public function setPayoutAmount($payoutAmount) { $this->payoutAmount = $payoutAmount; } public function getPayoutType() { return $this->payoutType; } public function setPayoutType($payoutType) { $this->payoutType = $payoutType; } public function getSubMerchantKey() { return $this->subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } }iyzipay-php/src/Iyzipay/Model/ReportingPaymentTransactionResource.php000064400000001451150364332050022254 0ustar00transactions; } public function setTransactions($transactions) { $this->transactions = $transactions; } public function getCurrentPage() { return $this->currentPage; } public function setCurrentPage($currentPage) { $this->currentPage = $currentPage; } public function getTotalPageCount() { return $this->totalPageCount; } public function setTotalPageCount($totalPageCount) { $this->totalPageCount = $totalPageCount; } }iyzipay-php/src/Iyzipay/Model/Status.php000064400000000157150364332050014314 0ustar00post($options->getBaseUrl() . "/crossbooking/receive", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CrossBookingFromSubMerchantMapper::create($rawResult)->jsonDecode()->mapCrossBookingFromSubMerchant(new CrossBookingFromSubMerchant()); } }iyzipay-php/src/Iyzipay/Model/SubMerchantPaymentItemResource.php000064400000001577150364332050021140 0ustar00subMerchantKey; } public function setSubMerchantKey($subMerchantKey) { $this->subMerchantKey = $subMerchantKey; } public function getPaymentTransactionId() { return $this->paymentTransactionId; } public function setPaymentTransactionId($paymentTransactionId) { $this->paymentTransactionId = $paymentTransactionId; } public function getSubMerchantPrice() { return $this->subMerchantPrice; } public function setSubMerchantPrice($subMerchantPrice) { $this->subMerchantPrice = $subMerchantPrice; } }iyzipay-php/src/Iyzipay/Model/RefundToBalance.php000064400000001140150364332050016016 0ustar00post($options->getBaseUrl() . "/payment/refund-to-balance/init", parent::getHttpHeaders($request, $options), $request->toJsonString()); return RefundToBalanceMapper::create($rawResult)->jsonDecode()->mapRefundToBalance(new RefundToBalance()); } }iyzipay-php/src/Iyzipay/Model/ThreedsPayment.php000064400000001752150364332050015767 0ustar00post($options->getBaseUrl() . "/payment/3dsecure/auth", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ThreedsPaymentMapper::create($rawResult)->jsonDecode()->mapThreedsPayment(new ThreedsPayment()); } public static function retrieve(RetrievePaymentRequest $request, Options $options) { $rawResult = parent::httpClient()->post($options->getBaseUrl() . "/payment/detail", parent::getHttpHeaders($request, $options), $request->toJsonString()); return ThreedsPaymentMapper::create($rawResult)->jsonDecode()->mapThreedsPayment(new ThreedsPayment()); } }iyzipay-php/src/Iyzipay/Model/ReportingPaymentDetailResource.php000064400000000502150364332050021165 0ustar00payments; } public function setPayments($payments) { $this->payments = $payments; } }iyzipay-php/src/Iyzipay/Model/SubMerchantType.php000064400000000327150364332050016105 0ustar00post($options->getBaseUrl() . "/cardstorage/cards", parent::getHttpHeaders($request, $options), $request->toJsonString()); return CardListMapper::create($rawResult)->jsonDecode()->mapCardList(new CardList()); } public function getCardUserKey() { return $this->cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getCardDetails() { return $this->cardDetails; } public function setCardDetails($cardDetails) { $this->cardDetails = $cardDetails; } }iyzipay-php/src/Iyzipay/Model/Loyalty.php000064400000002775150364332050014476 0ustar00post($options->getBaseUrl() . "/payment/loyalty/inquire", parent::getHttpHeaders($request, $options), $request->toJsonString()); return LoyaltyMapper::create($rawResult)->jsonDecode()->mapLoyalty(new Loyalty()); } private $points; private $amount; private $cardBank; private $cardFamily; private $currency; public function getPoints() { return $this->points; } public function setPoints($points) { $this->points = $points; } public function getAmount() { return $this->amount; } public function setAmount($amount) { $this->amount = $amount; } public function getCardBank() { return $this->cardBank; } public function setCardBank($cardBank) { $this->cardBank = $cardBank; } public function getCardFamily() { return $this->cardFamily; } public function setCardFamily($cardFamily) { $this->cardFamily = $cardFamily; } public function getCurrency() { return $this->currency; } public function setCurrency($currency) { $this->currency = $currency; } }iyzipay-php/src/Iyzipay/Model/InitialConsumer.php000064400000003532150364332050016136 0ustar00name; } public function setName($name) { $this->name = $name; } public function getSurname() { return $this->surname; } public function setSurname($surname) { $this->surname = $surname; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getAddressList() { return $this->addressList; } public function setAddressList($addressList) { $this->addressList = $addressList; } public function getJsonObject() { return JsonBuilder::create() ->add("name", $this->getName()) ->add("surname", $this->getSurname()) ->add("email", $this->getEmail()) ->add("gsmNumber", $this->getGsmNumber()) ->addArray("addressList", $this->getAddressList()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("name", $this->getName()) ->append("surname", $this->getSurname()) ->append("email", $this->getEmail()) ->append("gsmNumber", $this->getGsmNumber()) ->appendArray("addressList", $this->getAddressList()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/PaymentCard.php000064400000010460150364332050015236 0ustar00cardHolderName; } public function setCardHolderName($cardHolderName) { $this->cardHolderName = $cardHolderName; } public function getCardNumber() { return $this->cardNumber; } public function setCardNumber($cardNumber) { $this->cardNumber = $cardNumber; } public function getExpireYear() { return $this->expireYear; } public function setExpireYear($expireYear) { $this->expireYear = $expireYear; } public function getExpireMonth() { return $this->expireMonth; } public function setExpireMonth($expireMonth) { $this->expireMonth = $expireMonth; } public function getCvc() { return $this->cvc; } public function setCvc($cvc) { $this->cvc = $cvc; } public function getRegisterCard() { return $this->registerCard; } public function setRegisterCard($registerCard) { $this->registerCard = $registerCard; } public function getCardAlias() { return $this->cardAlias; } public function setCardAlias($cardAlias) { $this->cardAlias = $cardAlias; } public function getCardToken() { return $this->cardToken; } public function setCardToken($cardToken) { $this->cardToken = $cardToken; } public function getCardUserKey() { return $this->cardUserKey; } public function setCardUserKey($cardUserKey) { $this->cardUserKey = $cardUserKey; } public function getRegisterConsumerCard() { return $this->registerConsumerCard; } public function setRegisterConsumerCard($registerConsumerCard) { $this->registerConsumerCard = $registerConsumerCard; } public function getUcsToken() { return $this->ucsToken; } public function setUcsToken($ucsToken) { $this->ucsToken = $ucsToken; } public function setConsumerToken($consumerToken) { $this->consumerToken = $consumerToken; } public function getConsumerToken() { return $this->consumerToken; } public function getJsonObject() { return JsonBuilder::create() ->add("cardHolderName", $this->getCardHolderName()) ->add("cardNumber", $this->getCardNumber()) ->add("expireYear", $this->getExpireYear()) ->add("expireMonth", $this->getExpireMonth()) ->add("cvc", $this->getCvc()) ->add("registerCard", $this->getRegisterCard()) ->add("cardAlias", $this->getCardAlias()) ->add("cardToken", $this->getCardToken()) ->add("cardUserKey", $this->getCardUserKey()) ->add("registerConsumerCard", $this->getRegisterConsumerCard()) ->add("consumerToken", $this->getConsumerToken()) ->add("ucsToken", $this->getUcsToken()) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("cardHolderName", $this->getCardHolderName()) ->append("cardNumber", $this->getCardNumber()) ->append("expireYear", $this->getExpireYear()) ->append("expireMonth", $this->getExpireMonth()) ->append("cvc", $this->getCvc()) ->append("registerCard", $this->getRegisterCard()) ->append("cardAlias", $this->getCardAlias()) ->append("cardToken", $this->getCardToken()) ->append("cardUserKey", $this->getCardUserKey()) ->append("registerConsumerCard", $this->getRegisterConsumerCard()) ->append("consumerToken", $this->getConsumerToken()) ->append("ucsToken", $this->getUcsToken()) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/BasicThreedsInitialize.php000064400000001555150364332050017416 0ustar00post($options->getBaseUrl() . "/payment/3dsecure/initialize/basic", parent::getHttpHeaders($request, $options), $request->toJsonString()); return BasicThreedsInitializeMapper::create($rawResult)->jsonDecode()->mapBasicThreedsInitialize(new BasicThreedsInitialize()); } public function getHtmlContent() { return $this->htmlContent; } public function setHtmlContent($htmlContent) { $this->htmlContent = $htmlContent; } }iyzipay-php/src/Iyzipay/Model/Customer.php000064400000016012150364332050014627 0ustar00name; } public function setName($name) { $this->name = $name; } public function getSurname() { return $this->surname; } public function setSurname($surname) { $this->surname = $surname; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } public function getShippingContactName(){ return $this->shippingContactName; } public function setShippingContactName($shippingContactName){ return $this->shippingContactName = $shippingContactName; } public function getShippingCity(){ return $this->shippingCity; } public function setShippingCity($shippingCity){ return $this->shippingCity = $shippingCity; } public function getShippingCountry(){ return $this->shippingCountry; } public function setShippingCountry($shippingCountry){ return $this->shippingCountry = $shippingCountry; } public function getShippingAddress(){ return $this->shippingAddress; } public function setShippingAddress($shippingAddress){ return $this->shippingAddress = $shippingAddress; } public function getShippingZipCode(){ return $this->shippingZipCode; } public function setShippingZipCode($shippingZipCode){ return $this->shippingZipCode = $shippingZipCode; } public function getBillingContactName(){ return $this->billingContactName; } public function setBillingContactName($billingContactName){ return $this->billingContactName = $billingContactName; } public function getBillingCity(){ return $this->billingCity; } public function setBillingCity($billingCity){ return $this->billingCity = $billingCity; } public function getBillingCountry(){ return $this->billingCountry; } public function setBillingCountry($billingCountry){ return $this->billingCountry = $billingCountry; } public function getBillingAddress(){ return $this->billingAddress; } public function setBillingAddress($billingAddress){ return $this->billingAddress = $billingAddress; } public function getBillingZipCode(){ return $this->billingZipCode; } public function setBillingZipCode($billingZipCode){ return $this->billingZipCode = $billingZipCode; } public function getShippingDistrict() { return $this->shippingDistrict; } public function setShippingDistrict($shippingDistrict) { $this->shippingDistrict = $shippingDistrict; } public function getBillingDistrict() { return $this->billingDistrict; } public function setBillingDistrict($billingDistrict) { $this->billingDistrict = $billingDistrict; } public function getJsonObject($locale = null,$conversationId = null,$customerReferenceCode = null) { return JsonBuilder::create() ->add("locale", $locale) ->add("conversationId", $conversationId) ->add("customerReferenceCode", $customerReferenceCode) ->add("name", $this->getName()) ->add("surname", $this->getSurname()) ->add("identityNumber", $this->getIdentityNumber()) ->add("email", $this->getEmail()) ->add("gsmNumber", $this->getGsmNumber()) ->add("billingAddress", JsonBuilder::create() ->add("contactName", $this->getBillingContactName()) ->add("city", $this->getBillingCity()) ->add("district", $this->getBillingDistrict()) ->add("country", $this->getBillingCountry()) ->add("address", $this->getBillingAddress()) ->add("zipCode", $this->getBillingZipCode()) ->getObject() ) ->add("shippingAddress", JsonBuilder::create() ->add("contactName", $this->getShippingContactName()) ->add("city", $this->getShippingCity()) ->add("district", $this->getShippingDistrict()) ->add("country", $this->getShippingCountry()) ->add("address", $this->getShippingAddress()) ->add("zipCode", $this->getShippingZipCode()) ->getObject() ) ->getObject(); } public function toPKIRequestString() { return RequestStringBuilder::create() ->append("name", $this->getName()) ->append("surname", $this->getSurname()) ->append("identityNumber", $this->getIdentityNumber()) ->append("email", $this->getEmail()) ->append("gsmNumber", $this->getGsmNumber()) ->append("billingAddress", RequestStringBuilder::create() ->append("contactName", $this->getBillingContactName()) ->append("city", $this->getBillingCity()) ->append("district", $this->getBillingDistrict()) ->append("country", $this->getBillingCountry()) ->append("address", $this->getBillingAddress()) ->append("zipCode", $this->getBillingZipCode()) ->getRequestString() ) ->append("shippingAddress", RequestStringBuilder::create() ->append("contactName", $this->getShippingContactName()) ->append("city", $this->getShippingCity()) ->append("district", $this->getShippingDistrict()) ->append("country", $this->getShippingCountry()) ->append("address", $this->getShippingAddress()) ->append("zipCode", $this->getShippingZipCode()) ->getRequestString() ) ->getRequestString(); } }iyzipay-php/src/Iyzipay/Model/Consumer.php000064400000001773150364332050014631 0ustar00name; } public function setName($name) { $this->name = $name; } public function getSurname() { return $this->surname; } public function setSurname($surname) { $this->surname = $surname; } public function getIdentityNumber() { return $this->identityNumber; } public function setIdentityNumber($identityNumber) { $this->identityNumber = $identityNumber; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; } public function getGsmNumber() { return $this->gsmNumber; } public function setGsmNumber($gsmNumber) { $this->gsmNumber = $gsmNumber; } }iyzipay-php/src/Iyzipay/Model/ReportingPaymentDetail.php000064400000001361150364332050017461 0ustar00getBaseUrl() . "/v2/reporting/payment/details" . RequestStringBuilder::requestToStringQuery($request, 'reporting'); $rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, null, $options)); return ReportingPaymentDetailMapper::create($rawResult)->jsonDecode()->mapReportingPaymentDetail(new ReportingPaymentDetail()); } }iyzipay-php/src/Iyzipay/Model/IyziupFormInitialize.php000064400000001202150364332050017160 0ustar00post($options->getBaseUrl() . "/v1/iyziup/form/initialize", parent::getHttpHeaders($request, $options), $request->toJsonString()); return IyziupFormInitializeMapper::create($rawResult)->jsonDecode()->mapIyziupFormInitialize(new IyziupFormInitialize()); } }iyzipay-php/src/Iyzipay/Model/ApmType.php000064400000000242150364332050014403 0ustar00toJsonString() != '[]') $uriPath = $uriPath.$request->toJsonString(); return $uriPath; } }iyzipay-php/src/Iyzipay/FileBase64Encoder.php000064400000000420150364332050015106 0ustar00curl = $curl; } public static function create($curl = null) { return new DefaultHttpClient($curl); } public function get($url) { return $this->curl->exec($url, array( CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => false, CURLOPT_HEADER => false )); } public function getV2($url, $header) { return $this->curl->exec($url, array( CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => false, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header )); } public function post($url, $header, $content) { return $this->curl->exec($url, array( CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POST => true, CURLOPT_POSTFIELDS => $content, CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => false, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header )); } public function put($url, $header, $content) { return $this->curl->exec($url, array( CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_POSTFIELDS => $content, CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => false, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header )); } public function delete($url, $header, $content = null) { return $this->curl->exec($url, array( CURLOPT_CUSTOMREQUEST => "DELETE", CURLOPT_POSTFIELDS => $content, CURLOPT_RETURNTRANSFER => true, CURLOPT_VERBOSE => false, CURLOPT_HEADER => false, CURLOPT_HTTPHEADER => $header )); } }iyzipay-php/src/Iyzipay/RequestStringBuilder.php000064400000016111150364332050016114 0ustar00requestString = $requestString; } public static function create() { return new RequestStringBuilder(""); } /** * @param $superRequestString * @return RequestStringBuilder */ public function appendSuper($superRequestString) { if (isset($superRequestString)) { $superRequestString = substr($superRequestString, 1); $superRequestString = substr($superRequestString, 0, -1); if (strlen($superRequestString) > 0) { $this->requestString = $this->requestString . $superRequestString . ","; } } return $this; } /** * @param $key * @param $value * @return RequestStringBuilder */ public function append($key, $value = null) { if (isset($value)) { if ($value instanceof RequestStringConvertible) { $this->appendKeyValue($key, $value->toPKIRequestString()); } else { $this->appendKeyValue($key, $value); } } return $this; } /** * @param $key * @param $value * @return RequestStringBuilder */ public function appendPrice($key, $value = null) { if (isset($value)) { $this->appendKeyValue($key, RequestFormatter::formatPrice($value)); } return $this; } /** * @param $key * @param array $array * @return RequestStringBuilder */ public function appendArray($key, array $array = null) { if (isset($array)) { $appendedValue = ""; foreach ($array as $value) { if ($value instanceof RequestStringConvertible) { $appendedValue = $appendedValue . $value->toPKIRequestString(); } else { $appendedValue = $appendedValue . $value; } $appendedValue = $appendedValue . ", "; } $this->appendKeyValueArray($key, $appendedValue); } return $this; } /** * @param $key * @param $value * @return RequestStringBuilder */ private function appendKeyValue($key, $value) { if (isset($value)) { $this->requestString = $this->requestString . $key . "=" . $value . ","; } return $this; } /** * @param $key * @param $value * @return RequestStringBuilder */ private function appendKeyValueArray($key, $value) { if (isset($value)) { $value = substr($value, 0, -2); $this->requestString = $this->requestString . $key . "=[" . $value . "],"; } return $this; } /** * @return RequestStringBuilder */ private function appendPrefix() { $this->requestString = "[" . $this->requestString . "]"; return $this; } /** * @return RequestStringBuilder */ private function removeTrailingComma() { $this->requestString = substr($this->requestString, 0, -1); return $this; } public function getRequestString() { $this->removeTrailingComma(); $this->appendPrefix(); return $this->requestString; } public static function requestToStringQuery(Request $request, $type = null) { $stringQuery = false; if($request->getConversationId()) { $stringQuery = "?conversationId=" . $request->getConversationId(); } if($request->getLocale()) { $stringQuery .= "&locale=" . $request->getLocale(); } if($type == 'defaultParams' ) { if($request->getConversationId()) { $stringQuery = "?conversationId=" . $request->getConversationId(); $stringQuery .= ($request->getLocale()) ? ("&locale=" . $request->getLocale()) : ''; }else{ $stringQuery = ($request->getLocale()) ? ("?locale=" . $request->getLocale()) : ''; } } if($type == 'reporting') { if($request->getPaymentConversationId()) { $stringQuery .= "?paymentConversationId=" . $request->getPaymentConversationId(); } } if($type == 'reportingTransaction') { if($request->getTransactionDate()) { $stringQuery .= "&transactionDate=" . $request->getTransactionDate(); } if ($request->getPage()) { $stringQuery .= "&page=" . $request->getPage(); } } if($type == 'subscriptionItems' ) { if ($request->getPage()) { $stringQuery = "?page=" . $request->getPage(); } if ($request->getCount()) { $stringQuery .= "&count=" . $request->getCount(); } if($request->getConversationId()) { $stringQuery .= "&conversationId=" . $request->getConversationId(); } if($request->getLocale()) { $stringQuery .= "&locale=" . $request->getLocale(); } } if($type == 'searchSubscription') { if($request->getPage()){ $stringQuery = "?page=".$request->getPage(); } if($request->getCount()){ $stringQuery .= "&count=".$request->getCount(); } if($request->getSubscriptionReferenceCode()){ $stringQuery .= "&subscriptionReferenceCode=".$request->getSubscriptionReferenceCode(); } if($request->getParentReferenceCode()){ $stringQuery .= "&parentReferenceCode=".$request->getParentReferenceCode(); } if($request->getCustomerReferenceCode()){ $stringQuery .= "&customerReferenceCode=".$request->getCustomerReferenceCode(); } if($request->getPricingPlanReferenceCode()){ $stringQuery .= "&pricingPlanReferenceCode=".$request->getPricingPlanReferenceCode(); } if($request->getSubscriptionStatus()){ $stringQuery .= "&subscriptionStatus=".$request->getSubscriptionStatus(); } if($request->getStartDate()){ $stringQuery .= "&startDate=".$request->getStartDate(); } if($request->getEndDate()){ $stringQuery .= "&endDate=".$request->getEndDate(); } if($request->getConversationId()) { $stringQuery .= "&conversationId=" . $request->getConversationId(); } if($request->getLocale()) { $stringQuery .= "&locale=" . $request->getLocale(); } } if($type == 'pages') { if ($request->getPage()) { $stringQuery .= "&page=" . $request->getPage(); } if ($request->getCount()) { $stringQuery .= "&count=" . $request->getCount(); } } return $stringQuery; } }iyzipay-php/README.md000064400000017656150364332050010326 0ustar00# iyzipay-php [![Latest Stable Version](https://poser.pugx.org/iyzico/iyzipay-php/version)](https://packagist.org/packages/iyzico/iyzipay-php) [![Coverage Status](https://coveralls.io/repos/github/iyzico/iyzipay-php/badge.svg?branch=master)](https://coveralls.io/github/iyzico/iyzipay-php?branch=master) You can sign up for an iyzico account at https://iyzico.com # Requirements PHP 5.6 and later. ### Note Minimum TLS v1.2 will be supported after March 2018. Please upgrade your openssl version to minimum 1.0.1. If you have any questions, please open an issue on Github or contact us at integration@iyzico.com. # Installation ### Composer You can install the bindings via [Composer](http://getcomposer.org/). Run the following command: ```bash composer require iyzico/iyzipay-php ``` To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading): ```php require_once('vendor/autoload.php'); ``` ### Manual Installation If you do not wish to use Composer, you can download the [latest release](https://github.com/iyzico/iyzipay-php/releases). Then, to use the bindings, include the `IyzipayBootstrap.php` file. ```php require_once('/path/to/iyzipay-php/IyzipayBootstrap.php'); ``` # Usage ```php $options = new \Iyzipay\Options(); $options->setApiKey("your api key"); $options->setSecretKey("your secret key"); $options->setBaseUrl("https://sandbox-api.iyzipay.com"); $request = new \Iyzipay\Request\CreatePaymentRequest(); $request->setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setInstallment(1); $request->setBasketId("B67832"); $request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $paymentCard = new \Iyzipay\Model\PaymentCard(); $paymentCard->setCardHolderName("John Doe"); $paymentCard->setCardNumber("5528790000000008"); $paymentCard->setExpireMonth("12"); $paymentCard->setExpireYear("2030"); $paymentCard->setCvc("123"); $paymentCard->setRegisterCard(0); $request->setPaymentCard($paymentCard); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); $payment = \Iyzipay\Model\Payment::create($request, $options); ``` See other samples under samples directory. ## Development Install dependencies: ``` bash composer install ``` ### Mock test cards Test cards that can be used to simulate a *successful* payment: Card Number | Bank | Card Type ----------- | ---- | --------- 5890040000000016 | Akbank | Master Card (Debit) 5526080000000006 | Akbank | Master Card (Credit) 4766620000000001 | Denizbank | Visa (Debit) 4603450000000000 | Denizbank | Visa (Credit) 4729150000000005 | Denizbank Bonus | Visa (Credit) 4987490000000002 | Finansbank | Visa (Debit) 5311570000000005 | Finansbank | Master Card (Credit) 9792020000000001 | Finansbank | Troy (Debit) 9792030000000000 | Finansbank | Troy (Credit) 5170410000000004 | Garanti Bankası | Master Card (Debit) 5400360000000003 | Garanti Bankası | Master Card (Credit) 374427000000003 | Garanti Bankası | American Express 4475050000000003 | Halkbank | Visa (Debit) 5528790000000008 | Halkbank | Master Card (Credit) 4059030000000009 | HSBC Bank | Visa (Debit) 5504720000000003 | HSBC Bank | Master Card (Credit) 5892830000000000 | Türkiye İş Bankası | Master Card (Debit) 4543590000000006 | Türkiye İş Bankası | Visa (Credit) 4910050000000006 | Vakıfbank | Visa (Debit) 4157920000000002 | Vakıfbank | Visa (Credit) 5168880000000002 | Yapı ve Kredi Bankası | Master Card (Debit) 5451030000000000 | Yapı ve Kredi Bankası | Master Card (Credit) *Cross border* test cards: Card Number | Country ----------- | ------- 4054180000000007 | Non-Turkish (Debit) 5400010000000004 | Non-Turkish (Credit) Test cards to get specific *error* codes: Card Number | Description ----------- | ----------- 5406670000000009 | Success but cannot be cancelled, refund or post auth 4111111111111129 | Not sufficient funds 4129111111111111 | Do not honour 4128111111111112 | Invalid transaction 4127111111111113 | Lost card 4126111111111114 | Stolen card 4125111111111115 | Expired card 4124111111111116 | Invalid cvc2 4123111111111117 | Not permitted to card holder 4122111111111118 | Not permitted to terminal 4121111111111119 | Fraud suspect 4120111111111110 | Pickup card 4130111111111118 | General error 4131111111111117 | Success but mdStatus is 0 4141111111111115 | Success but mdStatus is 4 4151111111111112 | 3dsecure initialize failed ### Mock APM Accounts Mock APM Accounts that can be used to simulate a payment with alternative payment method: Account Holder Name | Description ------------------- | ----------- success | Succeeded payment after succeeded initialize fail-after-init | Failed payment after succeeded initialize error | Failed initialize # Testing Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite: ```bash ./vendor/bin/phpunit ``` Or to run an individual test file: ```bash ./vendor/bin/phpunit tests/Iyzipay/Tests/Model/PaymentTest.php ``` Test file is testing... iyzipay-php/.github/workflows/github_pull_request.yml000064400000001575150364332050017246 0ustar00name: PHP Composer on: pull_request: branches: [ "master" ] permissions: contents: read jobs: build: runs-on: ubuntu-18.04 strategy: matrix: php-versions: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2'] include: - php-versions: '5.3' steps: - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - name: Cache Composer packages id: composer-cache uses: actions/cache@v3 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-php- - name: Update composer run: composer self-update - name: Install dependencies run: composer install --no-interaction - name: Run test run: composer run test iyzipay-php/.github/workflows/github_master.yml000064400000003654150364332050016015 0ustar00name: Update Release Workflow #on: # pull_request: # types: # - opened # - synchronize # - reopened on: push: branches: [ "master" ] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Update Release Number run: | set -e # Retrieve the current release number current_release=$(cat VERSION) # Increment the release number new_release=$(echo $current_release | awk -F. -v OFS=. '{$NF++;print}') # Set the new release number as an environment variable echo "NEW_RELEASE=${new_release}" >> $GITHUB_ENV # Change version number on files sed -i -e's/'$current_release'/'$new_release'/g' src/Iyzipay/IyzipayResource.php VERSION - name: Github Tasks run: | set -e git config user.name "iyzico-ci" git config user.email iyzico-ci@iyzico.com git add . git commit -m "Automatic commit by iyzico-ci v${{env.NEW_RELEASE}}" git push origin master git tag -a v${{env.NEW_RELEASE}} -m "Automatic tag by iyzico-ci v${{env.NEW_RELEASE}}" git push origin v${{env.NEW_RELEASE}} - name: Github Release run: | # Use the new release version in release creation step echo "Creating release ${{env.NEW_RELEASE}}..." result=$( curl -# -XPOST -H "Authorization: token ${{secrets.TOKEN_GITHUB}}" -H "Content-Type: application/json" -H "Accept:application/json" --data-binary '{"tag_name": "v${{env.NEW_RELEASE}}","target_commitish": "master","name": "iyzipay-php ${{env.NEW_RELEASE}}","body": "version ${{env.NEW_RELEASE}}","draft": false,"prerelease": false}' https://api.github.com/repos/iyzico/iyzipay-php/releases ) echo $result echo "GitHub release ${{env.NEW_RELEASE}} created!" iyzipay-php/IyzipayBootstrap.php000064400000013044150364332050013077 0ustar00register(); } } /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * This software consists of voluntary contributions made by many individuals * and is licensed under the MIT license. For more information, see * . */ /** * SplClassLoader implementation that implements the technical interoperability * standards for PHP 5.3 namespaces and class names. * * http://groups.google.com/group/php-standards/web/psr-0-final-proposal?pli=1 * * // Example which loads classes for the Doctrine Common package in the * // Doctrine\Common namespace. * $classLoader = new SplClassLoader('Doctrine\Common', '/path/to/doctrine'); * $classLoader->register(); * * @license http://www.opensource.org/licenses/mit-license.html MIT License * @author Jonathan H. Wage * @author Roman S. Borschel * @author Matthew Weier O'Phinney * @author Kris Wallsmith * @author Fabien Potencier */ class SplClassLoader { private $_fileExtension = '.php'; private $_namespace; private $_includePath; private $_namespaceSeparator = '\\'; /** * Creates a new SplClassLoader that loads classes of the * specified namespace. * * @param string $ns * The namespace to use. * @param string $includePath * The base path. */ public function __construct($ns = null, $includePath = null) { $this->_namespace = $ns; $this->_includePath = $includePath; } /** * Sets the namespace separator used by classes in the namespace of this class loader. * * @param string $sep * The separator to use. */ public function setNamespaceSeparator($sep) { $this->_namespaceSeparator = $sep; } /** * Gets the namespace separator used by classes in the namespace of this class loader. * * @return string $_namespaceSeparator */ public function getNamespaceSeparator() { return $this->_namespaceSeparator; } /** * Sets the base include path for all class files in the namespace of this class loader. * * @param string $includePath */ public function setIncludePath($includePath) { $this->_includePath = $includePath; } /** * Gets the base include path for all class files in the namespace of this class loader. * * @return string $includePath */ public function getIncludePath() { return $this->_includePath; } /** * Sets the file extension of class files in the namespace of this class loader. * * @param string $fileExtension */ public function setFileExtension($fileExtension) { $this->_fileExtension = $fileExtension; } /** * Gets the file extension of class files in the namespace of this class loader. * * @return string $fileExtension */ public function getFileExtension() { return $this->_fileExtension; } /** * Installs this class loader on the SPL autoload stack. */ public function register() { spl_autoload_register(array( $this, 'loadClass' )); } /** * Uninstalls this class loader from the SPL autoloader stack. */ public function unregister() { spl_autoload_unregister(array( $this, 'loadClass' )); } /** * Loads the given class or interface. * * @param string $className * The name of the class to load. * @return void */ public function loadClass($className) { if (null === $this->_namespace || $this->_namespace . $this->_namespaceSeparator === substr($className, 0, strlen($this->_namespace . $this->_namespaceSeparator))) { $fileName = ''; if (false !== ($lastNsPos = strripos($className, $this->_namespaceSeparator))) { $namespace = substr($className, 0, $lastNsPos); $className = substr($className, $lastNsPos + 1); $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; } $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . $this->_fileExtension; require ($this->_includePath !== null ? $this->_includePath . DIRECTORY_SEPARATOR : '') . $fileName; } } }iyzipay-php/samples/retrieve_bin.php000064400000000565150364332050013670 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setBinNumber("554960"); # make request $binNumber = \Iyzipay\Model\BinNumber::retrieve($request, Config::options()); # print result print_r($binNumber);iyzipay-php/samples/initialize_bkm.php000064400000005670150364332050014207 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setBasketId("B67832"); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setCallbackUrl("https://www.merchant.com/callback"); $request->setEnabledInstallments(array(2, 3, 6, 9)); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $bkmInitialize = \Iyzipay\Model\BkmInitialize::create($request, Config::options()); # print result print_r($bkmInitialize);iyzipay-php/samples/retrieve_pay_with_iyzico_result.php000064400000000600150364332050017716 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setToken("token"); # make request $payWithIyzico = \Iyzipay\Model\PayWithIyzico::retrieve($request, Config::options()); # print result print_r($payWithIyzico);iyzipay-php/samples/update_sub_merchant.php000064400000005261150364332050015225 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setSubMerchantKey("sub merchant key"); $request->setIban("TR630006200027700006678204"); $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $request->setContactName("Jane"); $request->setContactSurname("Doe"); $request->setEmail("email@submerchantemail.com"); $request->setGsmNumber("+905350000000"); $request->setName("Jane's market"); $request->setIdentityNumber("31300864726"); $request->setCurrency(\Iyzipay\Model\Currency::TL); # make request $subMerchant = \Iyzipay\Model\SubMerchant::update($request, Config::options()); # print result print_r($subMerchant); } function update_private_sub_merchant() { # create request class $request = new \Iyzipay\Request\UpdateSubMerchantRequest(); $request->setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setSubMerchantKey("sub merchant key"); $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $request->setTaxOffice("Tax office"); $request->setLegalCompanyTitle("Jane Doe inc"); $request->setEmail("email@submerchantemail.com"); $request->setGsmNumber("+905350000000"); $request->setName("Jane's market"); $request->setIban("TR180006200119000006672315"); $request->setIdentityNumber("31300864726"); $request->setCurrency(\Iyzipay\Model\Currency::TL); # make request $subMerchant = \Iyzipay\Model\SubMerchant::update($request, Config::options()); # print result print_r($subMerchant); } function update_limited_company_sub_merchant() { # create request class $request = new \Iyzipay\Request\UpdateSubMerchantRequest(); $request->setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setSubMerchantKey("sub merchant key"); $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $request->setTaxOffice("Tax office"); $request->setTaxNumber("9261877"); $request->setLegalCompanyTitle("ABC inc"); $request->setEmail("email@submerchantemail.com"); $request->setGsmNumber("+905350000000"); $request->setName("Jane's market"); $request->setIban("TR180006200119000006672315"); $request->setCurrency(\Iyzipay\Model\Currency::TL); # make request $subMerchant = \Iyzipay\Model\SubMerchant::update($request, Config::options()); # print result print_r($subMerchant); }iyzipay-php/samples/ucs_init.php000064400000000502150364332050013017 0ustar00setEmail("email@iyzico.com"); $request->setGsmNumber("+905555555555"); # make request $result = \Iyzipay\Model\UCSInitialize::create($request,Config::options()); # print result print_r($payment);iyzipay-php/samples/create_payment_with_registered_card.php000064400000006222150364332050020450 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setInstallment(1); $request->setBasketId("B67832"); $request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $paymentCard = new \Iyzipay\Model\PaymentCard(); $paymentCard->setCardUserKey("card user key"); $paymentCard->setCardToken("card token"); $request->setPaymentCard($paymentCard); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $payment = \Iyzipay\Model\Payment::create($request, Config::options()); # print response print_r($payment);iyzipay-php/samples/images/sample_image.jpg000064400000004666150364332050015102 0ustar00JFIF``>CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), default quality C    $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((()g8C"``2qO{(P2=7:e"̆f;$g'Z$ڠqus$d(‚ʼnx'$fQ[m_jV+ Imé%C#888 *x2[ͩ6:l1`uܡ2sq j]֏|֗j«IUՇH Tqۙ ;mEdzMAEtCZIv4DG',"dgqSLZMBOI<\!v"1xȢ5MM: Ȯml'fXmܸ0`XAփM-[KwLԘ 2z,bxpS\^B9#nè((((((ZN~` @h$ Mn:-hAyӴRF )Kˎ: ǵ:i/?:1V(m$Wg[YǤDU3՘sݏ'F˧^h:|,\E2A"S]â xhҼO "m,94>f>g-+eoשGȬuW:;' ;г1+F ;[^c.[X^87`#nffc2RiiV1(o7|F n r 6I \k@2^%^2[WB]2p`-&?)y#nTpNzPS"w_$iֶhO3$f3Q\tG/+{Op3I$sJQ/t8e`4%ݼBR6B˕ʂ9<mx8eU#R\<:帑rw$[fK4).%Mw:,o$L(-P$on|-j2VrN[kduyo.BjeN(ٖ].7gƹWֵy%>Վ%9FUTgڳ(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((iyzipay-php/samples/iyzilink_delete_product_sample.php000064400000000460150364332050017472 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $token = "AAVmmA"; $response = \Iyzipay\Model\Iyzilink\IyziLinkDeleteProduct::create($request, Config::options(),$token); print_r($response); iyzipay-php/samples/disapprove.php000064400000000574150364332050013367 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPaymentTransactionId("1"); # make request $disapproval = \Iyzipay\Model\Disapproval::create($request, Config::options()); # print result print_r($disapproval);iyzipay-php/samples/retrieve_bkm_result.php000064400000000530150364332050015257 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setToken("token"); # make request $bkm = \Iyzipay\Model\Bkm::retrieve($request, Config::options()); # print result print_r($bkm);iyzipay-php/samples/subscription-samples/update_customer.php000064400000002310150364332050020572 0ustar00setLocale("tr"); $request->setConversationId("1234567789"); $request->setCustomerReferenceCode("66c238cf-faf5-4d42-bfed-642d47b74aac"); $customer = new \Iyzipay\Model\Customer(); $customer->setName("John"); $customer->setSurname("Doe"); $customer->setEmail("johndoe@iyzico.com"); $customer->setGsmNumber("+905555555111"); $customer->setIdentityNumber("11111111111"); $customer->setShippingContactName("John Doe"); $customer->setShippingCity("Istanbul"); $customer->setShippingDistrict("altunizade"); $customer->setShippingCountry("Turkey"); $customer->setShippingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setShippingZipCode("34660"); $customer->setBillingContactName("John Doe"); $customer->setBillingCity("Istanbul"); $customer->setBillingDistrict("altunizade"); $customer->setBillingCountry("Turkey"); $customer->setBillingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setBillingZipCode("34660"); $request->setCustomer($customer); $result = \Iyzipay\Model\Subscription\SubscriptionCustomer::update($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/list_pricing_plan.php000064400000000553150364332050021076 0ustar00setPage(1); $request->setCount(3); $request->setProductReferenceCode("e768c480-1ab7-4f14-b4cb-1a3af720fce9"); $result = \Iyzipay\Model\Subscription\RetrieveList::pricingPlan($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/retrieve_customer.php000064400000000505150364332050021141 0ustar00setCustomerReferenceCode("66c238cf-faf5-4d42-bfed-642d47b74aac"); $result = \Iyzipay\Model\Subscription\SubscriptionCustomer::retrieve($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/search_subscription.php000064400000000736150364332050021452 0ustar00setPage(1); $request->setCount(10); $request->setSubscriptionStatus('ACTIVE'); $request->setStartDate('2018-10-05'); $request->setEndDate('2019-10-05'); $request->setPricingPlanReferenceCode('c1d489b6-9adc-42fa-88ae-47ea2e5dbe1e'); $result = \Iyzipay\Model\Subscription\RetrieveList::subscriptions($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/retrieve_subscription.php000064400000000475150364332050022032 0ustar00setSubscriptionReferenceCode("fec5250d-1f9f-4605-bc73-db33072248f7"); $result = \Iyzipay\Model\Subscription\SubscriptionDetails::retrieve($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/update_product.php000064400000000714150364332050020417 0ustar00setLocale("tr"); $request->setConversationId("1234567889"); $request->setProductReferenceCode("bbab6ca0-9054-45c7-8060-57a417167738"); $request->setName("newName"); $request->setDescription("newDescription"); $result = \Iyzipay\Model\Subscription\SubscriptionProduct::update($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/list_products.php000064400000000433150364332050020271 0ustar00setPage(1); $request->setCount(10); $result = \Iyzipay\Model\Subscription\RetrieveList::products($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/card_update_customer.php000064400000000675150364332050021577 0ustar00setLocale("tr"); $request->setConversationId("123456789"); $request->setCustomerReferenceCode("7ad4cc50-c96c-45c6-a3f3-5f1db261e511"); $request->setCallBackUrl("https://www.callbackurl.com"); $result = \Iyzipay\Model\Subscription\SubscriptionCardUpdate::update($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/retrieve_subscription_checkout_form_result.php000064400000000527150364332050026336 0ustar00setCheckoutFormToken("817ff890-424c-4e15-b190-d178834750cc"); $result = \Iyzipay\Model\Subscription\RetrieveSubscriptionCheckoutForm::retrieve($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/create_subscription_api.php000064400000002665150364332050022304 0ustar00setLocale("tr"); $request->setConversationId("123456789"); $request->setPricingPlanReferenceCode("c1d489b6-9adc-42fa-88ae-47ea2e5dbe1e"); $request->setSubscriptionInitialStatus("PENDING"); $paymentCard = new \Iyzipay\Model\PaymentCard(); $paymentCard->setCardHolderName("John Doe"); $paymentCard->setCardNumber("4603450000000000"); $paymentCard->setExpireMonth("12"); $paymentCard->setExpireYear("2030"); $paymentCard->setCvc("123"); $request->setPaymentCard($paymentCard); $customer = new \Iyzipay\Model\Customer(); $customer->setName("John"); $customer->setSurname("Doe"); $customer->setGsmNumber("+905555555555"); $customer->setEmail("johndoe@iyzico.com"); $customer->setIdentityNumber("11111111111"); $customer->setShippingContactName("John Doe"); $customer->setShippingCity("Istanbul"); $customer->setShippingCountry("Turkey"); $customer->setShippingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setShippingZipCode("34660"); $customer->setBillingContactName("John Doe"); $customer->setBillingCity("Istanbul"); $customer->setBillingCountry("Turkey"); $customer->setBillingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setBillingZipCode("34660"); $request->setCustomer($customer); $result = \Iyzipay\Model\Subscription\SubscriptionCreate::create($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/retrieve_product.php000064400000000502150364332050020755 0ustar00setProductReferenceCode("3866b3c3-2750-494b-9f0e-89e77f8c0283"); $result = \Iyzipay\Model\Subscription\SubscriptionProduct::retrieve($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/delete_pricing_plan.php000064400000000620150364332050021360 0ustar00setPricingPlanReferenceCode("6d20b09d-2650-4b92-a5be-ad1d6fbf6b1e"); $request->setLocale("tr"); $request->setConversationId("123456789"); $result = \Iyzipay\Model\Subscription\SubscriptionPricingPlan::delete($request, Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/cancel_subscription.php000064400000000600150364332050021420 0ustar00setLocale("tr"); $request->setConversationId("123456789"); $request->setSubscriptionReferenceCode("5560ca5b-e0b9-4270-863c-c5f702c3a110"); $result = \Iyzipay\Model\Subscription\SubscriptionCancel::cancel($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/list_customers.php000064400000000436150364332050020455 0ustar00setPage(1); $request->setCount(100); $result = \Iyzipay\Model\Subscription\RetrieveList::customers($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/card_update_with_subscription_reference_code.php000064400000000773150364332050026524 0ustar00setLocale("tr"); $request->setConversationId("123456789"); $request->setSubscriptionReferenceCode("7ad4cc50-c96c-45c6-a3f3-5f1db261e511"); $request->setCallBackUrl("https://www.callbackurl.com"); $result = \Iyzipay\Model\Subscription\SubscriptionCardUpdate::updateWithSubscriptionReferenceCode($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/create_subscription_with_checkout_form.php000064400000002344150364332050025410 0ustar00setConversationId("123456789"); $request->setLocale("tr"); $request->setPricingPlanReferenceCode("ffed3cb1-1cf6-476f-9a0c-ae2a89e2cc1d"); $request->setSubscriptionInitialStatus("ACTIVE"); $request->setCallbackUrl("https://callbackurl.com"); $customer = new \Iyzipay\Model\Customer(); $customer->setName("John"); $customer->setSurname("Doe"); $customer->setGsmNumber("+905555555555"); $customer->setEmail("johndoe@iyzico.com"); $customer->setIdentityNumber("11111111111"); $customer->setShippingContactName("John Doe"); $customer->setShippingCity("Istanbul"); $customer->setShippingCountry("Turkey"); $customer->setShippingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setShippingZipCode("34660"); $customer->setBillingContactName("John Doe"); $customer->setBillingCity("Istanbul"); $customer->setBillingCountry("Turkey"); $customer->setBillingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setBillingZipCode("34660"); $request->setCustomer($customer); $result = \Iyzipay\Model\Subscription\SubscriptionCreateCheckoutForm::create($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/create_subscription_with_customer_reference_code.php000064400000001025150364332050027424 0ustar00setConversationId("123456789"); $request->setLocale("tr"); $request->setPricingPlanReferenceCode("eb5cc6b4-a441-484c-99f2-ea7c1755ecd3"); $request->setSubscriptionInitialStatus("ACTIVE"); $request->setCustomerReferenceCode("1aa8d2ce-8209-4666-8bf5-b818e851c590"); $result = \Iyzipay\Model\Subscription\SubscriptionCreateWithCustomer::create($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/retry_subscription.php000064400000000562150364332050021347 0ustar00setLocale("tr"); $request->setConversationId("123456789"); $request->setReferenceCode("504de1a8-8588-485e-9f8d-9bd9f3cb52f2"); $result = \Iyzipay\Model\Subscription\SubscriptionRetry::update($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/update_pricing_plan.php000064400000000723150364332050021404 0ustar00setLocale('tr'); $request->setConversationId('123456789'); $request->setPricingPlanReferenceCode("6d20b09d-2650-4b92-a5be-ad1d6fbf6b1e"); $request->setName("updatedName"); $request->setTrialPeriodDays(10); $result = \Iyzipay\Model\Subscription\SubscriptionPricingPlan::update($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/upgrade_subscription.php000064400000001076150364332050021632 0ustar00setLocale("TR"); $request->setConversationId("123123123"); $request->setSubscriptionReferenceCode("85eaa655-c3fd-4053-9e9b-dacc9e201c5f"); $request->setNewPricingPlanReferenceCode("5308630d-fb0a-453f-b30a-5afa719d5191"); $request->setUpgradePeriod("NOW"); $request->setUseTrial(true); $request->setResetRecurrenceCount(true); $result = \Iyzipay\Model\Subscription\SubscriptionUpgrade::update($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/retrieve_pricing_plan.php000064400000000516150364332050021747 0ustar00setPricingPlanReferenceCode("6d20b09d-2650-4b92-a5be-ad1d6fbf6b1e"); $result = \Iyzipay\Model\Subscription\SubscriptionPricingPlan::retrieve($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/create_pricing_plan.php000064400000001244150364332050021364 0ustar00setLocale('tr'); $request->setConversationId('123456789'); $request->setProductReferenceCode('ac188383-d30e-490e-94bb-239ff6af4b5b'); $request->setName('testPlan'); $request->setPrice('30.0'); $request->setCurrencyCode('TRY'); $request->setPaymentInterval('WEEKLY'); $request->setPaymentIntervalCount(1); $request->setTrialPeriodDays(30); $request->setRecurrenceCount(5); $request->setPlanPaymentType('RECURRING'); $result = \Iyzipay\Model\Subscription\SubscriptionPricingPlan::create($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/create_product.php000064400000000616150364332050020401 0ustar00setLocale("tr"); $request->setConversationId("1234567889"); $request->setName("KingOfProduct"); $request->setDescription("DescriptionOfProduct"); $result = \Iyzipay\Model\Subscription\SubscriptionProduct::create($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/activate_subscription.php000064400000000604150364332050021777 0ustar00setLocale("TR"); $request->setConversationId("123456789"); $request->setSubscriptionReferenceCode("7e10bcf1-a292-41f1-b61f-19e4aa84ff40"); $result = \Iyzipay\Model\Subscription\SubscriptionActivate::update($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/create_customer.php000064400000002200150364332050020551 0ustar00setLocale("tr"); $request->setConversationId("1234567789"); $customer = new \Iyzipay\Model\Customer(); $customer->setName("John"); $customer->setSurname("Doe"); $customer->setGsmNumber("+905555555555"); $customer->setEmail("johndoe@iyzicotest.com"); $customer->setIdentityNumber("11111111111"); $customer->setShippingContactName("John Doe"); $customer->setShippingCity("Istanbul"); $customer->setShippingDistrict("altunizade"); $customer->setShippingCountry("Turkey"); $customer->setShippingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setShippingZipCode("34660"); $customer->setBillingContactName("John Doe"); $customer->setBillingCity("Istanbul"); $customer->setBillingDistrict("altunizade"); $customer->setBillingCountry("Turkey"); $customer->setBillingAddress("Uskudar Burhaniye Mahallesi iyzico A.S"); $customer->setBillingZipCode("34660"); $request->setCustomer($customer); $result = \Iyzipay\Model\Subscription\SubscriptionCustomer::create($request,Config::options()); print_r($result);iyzipay-php/samples/subscription-samples/delete_product.php000064400000000603150364332050020374 0ustar00setLocale("tr"); $request->setConversationId("123456789"); $request->setProductReferenceCode("bbab6ca0-9054-45c7-8060-57a417167738"); $result = \Iyzipay\Model\Subscription\SubscriptionProduct::delete($request,Config::options()); print_r($result);iyzipay-php/samples/create_payment.php000064400000006437150364332050014217 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setInstallment(1); $request->setBasketId("B67832"); $request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $paymentCard = new \Iyzipay\Model\PaymentCard(); $paymentCard->setCardHolderName("John Doe"); $paymentCard->setCardNumber("5528790000000008"); $paymentCard->setExpireMonth("12"); $paymentCard->setExpireYear("2030"); $paymentCard->setCvc("123"); $paymentCard->setRegisterCard(0); $request->setPaymentCard($paymentCard); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $payment = \Iyzipay\Model\Payment::create($request, Config::options()); # print response print_r($payment);iyzipay-php/samples/refund.php000064400000000733150364332050012473 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPaymentTransactionId("1"); $request->setPrice("0.5"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setIp("85.34.78.112"); # make request $refund = \Iyzipay\Model\Refund::create($request, Config::options()); # print result print_r($refund);iyzipay-php/samples/reporting_payment_detail.php000064400000000403150364332050016272 0ustar00setPaymentConversationId("123456789"); $result = \Iyzipay\Model\ReportingPaymentDetail::create($request, Config::options()); print_r($result); iyzipay-php/samples/initialize_checkout_form.php000064400000006057150364332050016266 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setBasketId("B67832"); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setCallbackUrl("https://www.merchant.com/callback"); $request->setEnabledInstallments(array(2, 3, 6, 9)); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $checkoutFormInitialize = \Iyzipay\Model\CheckoutFormInitialize::create($request, Config::options()); # print result print_r($checkoutFormInitialize);iyzipay-php/samples/tls_v12_test.php000064400000001056150364332050013540 0ustar00setBaseUrl("https://sandbox-api-tls12.iyzipay.com"); $iyzipayResource = \Iyzipay\Model\ApiTest::retrieve($options); $tlsWarningMessage = "WARNING! Minimum TLS v1.2 will be supported after March 2018. Please upgrade your openssl version to minimum 1.0.1. If you have any questions, please open an issue on Github or contact us at integration@iyzico.com."; if ($iyzipayResource->getStatus() == "success") { print_r($iyzipayResource); } else { print_r($tlsWarningMessage); }iyzipay-php/samples/retrieve_apm.php000064400000000550150364332050013667 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPaymentId("1"); # make request $apmRetrieve = \Iyzipay\Model\Apm::retrieve($request, Config::options()); # print result print_r($apmRetrieve);iyzipay-php/samples/retrieve_payout_transactions.php000064400000001764150364332050017233 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setDate("2016-01-22 19:13:00"); # make request $payoutCompletedTransactionList = \Iyzipay\Model\PayoutCompletedTransactionList::retrieve($request, Config::options()); # print result print_r($payoutCompletedTransactionList); } function retrieve_bounced_bank_transfers() { # create request class $request = new \Iyzipay\Request\RetrieveTransactionsRequest(); $request->setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setDate("2016-01-22 19:13:00"); # make request $bouncedBankTransferList = \Iyzipay\Model\BouncedBankTransferList::retrieve($request, Config::options()); # print result print_r($bouncedBankTransferList); }iyzipay-php/samples/retrieve_installments.php000064400000000650150364332050015630 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setBinNumber("554960"); $request->setPrice("100"); # make request $installmentInfo = \Iyzipay\Model\InstallmentInfo::retrieve($request, Config::options()); # print result print_r($installmentInfo);iyzipay-php/samples/iyzilink_retrieve_product_sample.php000064400000000462150364332050020057 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $token = "AAVmmA"; $response = \Iyzipay\Model\Iyzilink\IyziLinkRetrieveProduct::create($request, Config::options(),$token); print_r($response); iyzipay-php/samples/initialize_iyziup_form_with_initial_consumer.php000064400000007421150364332050022465 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setMerchantOrderId("B67832"); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setPaymentSource("OPENCART-2.3.0.2"); $request->setForceThreeDS(0); $request->setEnabledInstallments(array(2, 3, 6, 9)); $request->setEnabledCardFamily("Bonus"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setShippingPrice("0.2"); $request->setCallbackUrl("https://www.merchant.com/callback"); $request->setTermsUrl("https://www.merchant.com/terms"); $request->setPreSalesContractUrl("https://www.merchant.com/preSalesContract"); $orderItems = array(); $firstOrderItem = new \Iyzipay\Model\OrderItem(); $firstOrderItem->setId("BI101"); $firstOrderItem->setName("Binocular"); $firstOrderItem->setCategory1("Collectibles"); $firstOrderItem->setCategory2("Accessories"); $firstOrderItem->setItemType(\Iyzipay\Model\OrderItemType::PHYSICAL); $firstOrderItem->setPrice("0.3"); $firstOrderItem->setItemUrl("https://www.merchant.com/firstItem.html"); $firstOrderItem->setItemDescription("a handheld optical instrument composed of two telescopes and a focusing device and usually having prisms to increase magnifying ability"); $OrderItems[0] = $firstOrderItem; $secondOrderItem = new \Iyzipay\Model\OrderItem(); $secondOrderItem->setId("BI102"); $secondOrderItem->setName("Game code"); $secondOrderItem->setCategory1("Game"); $secondOrderItem->setCategory2("Online Game Items"); $secondOrderItem->setItemType(\Iyzipay\Model\OrderItemType::VIRTUAL); $secondOrderItem->setPrice("0.5"); $secondOrderItem->setItemUrl("https://www.merchant.com/secondItem.html"); $secondOrderItem->setItemDescription("Game Code can be used for online games"); $OrderItems[1] = $secondOrderItem; $thirdOrderItem = new \Iyzipay\Model\OrderItem(); $thirdOrderItem->setId("BI103"); $thirdOrderItem->setName("Usb"); $thirdOrderItem->setCategory1("Electronics"); $thirdOrderItem->setCategory2("Usb / Cable"); $thirdOrderItem->setItemType(\Iyzipay\Model\OrderItemType::PHYSICAL); $thirdOrderItem->setPrice("0.2"); $thirdOrderItem->setItemUrl("https://www.merchant.com/thirdItem.html"); $thirdOrderItem->setItemDescription("Universal Serial Bus"); $OrderItems[2] = $thirdOrderItem; $request->setOrderItems($OrderItems); $initialConsumer = new \Iyzipay\Model\InitialConsumer; $initialConsumer->setName("ConsumerName"); $initialConsumer->setSurname("ConsumerSurname"); $initialConsumer->setEmail("consumerName@mail.com"); $initialConsumer->setGsmNumber("+905556667788"); $addressList = array(); $homeAddress = new \Iyzipay\Model\IyziupAddress; $homeAddress->setAlias("HomeAddress"); $homeAddress->setAddressLine1("Home Address Line 1"); $homeAddress->setAddressLine2("Home Address Line 2"); $homeAddress->setZipCode("HomeZipCode"); $homeAddress->setContactName("HomeConsumerName HomeConsumerSurname"); $homeAddress->setCity("HomeCity"); $homeAddress->setCountry("HomeCountry"); $addressList[0] = $homeAddress; $workAddress = new \Iyzipay\Model\IyziupAddress; $workAddress->setAlias("WorkAddress"); $workAddress->setAddressLine1("Work Address Line 1"); $workAddress->setAddressLine2("Work Address Line 2"); $workAddress->setZipCode("WorkZipCode"); $workAddress->setContactName("WorkConsumerName WorkConsumerSurname"); $workAddress->setCity("WorkCity"); $workAddress->setCountry("WorkCountry"); $addressList[1] = $workAddress; $initialConsumer->setAddressList($addressList); $request->setInitialConsumer($initialConsumer); # make request $iyziupFormInitialize = \Iyzipay\Model\IyziupFormInitialize::create($request, Config::options()); # print result print_r($iyziupFormInitialize);iyzipay-php/samples/create_card.php000064400000003035150364332050013442 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setEmail("email@email.com"); $request->setExternalId("external id"); $cardInformation = new \Iyzipay\Model\CardInformation(); $cardInformation->setCardAlias("card alias"); $cardInformation->setCardHolderName("John Doe"); $cardInformation->setCardNumber("5528790000000008"); $cardInformation->setExpireMonth("12"); $cardInformation->setExpireYear("2030"); $request->setCard($cardInformation); # make request $card = \Iyzipay\Model\Card::create($request, Config::options()); # print result print_r($card); } function create_card() { # create request class $request = new \Iyzipay\Request\CreateCardRequest(); $request->setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setCardUserKey("card user key"); $cardInformation = new \Iyzipay\Model\CardInformation(); $cardInformation->setCardAlias("card alias"); $cardInformation->setCardHolderName("John Doe"); $cardInformation->setCardNumber("5528790000000008"); $cardInformation->setExpireMonth("12"); $cardInformation->setExpireYear("2030"); $request->setCard($cardInformation); # make request $card = \Iyzipay\Model\Card::create($request, Config::options()); # print result print_r($card); }iyzipay-php/samples/retrieve_checkout_form_result.php000064400000000604150364332050017340 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setToken($_POST['token']); # make request $checkoutForm = \Iyzipay\Model\CheckoutForm::retrieve($request, Config::options()); # print result print_r($checkoutForm);iyzipay-php/samples/initialize_iyziup_form.php000064400000005136150364332050016007 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setMerchantOrderId("B67832"); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setPaymentSource("OPENCART-2.3.0.2"); $request->setForceThreeDS(0); $request->setEnabledInstallments(array(2, 3, 6, 9)); $request->setEnabledCardFamily("Bonus"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setShippingPrice("0.2"); $request->setCallbackUrl("https://www.merchant.com/callback"); $request->setTermsUrl("https://www.merchant.com/terms"); $request->setPreSalesContractUrl("https://www.merchant.com/preSalesContract"); $orderItems = array(); $firstOrderItem = new \Iyzipay\Model\OrderItem(); $firstOrderItem->setId("BI101"); $firstOrderItem->setName("Binocular"); $firstOrderItem->setCategory1("Collectibles"); $firstOrderItem->setCategory2("Accessories"); $firstOrderItem->setItemType(\Iyzipay\Model\OrderItemType::PHYSICAL); $firstOrderItem->setPrice("0.3"); $firstOrderItem->setItemUrl("https://www.merchant.com/firstItem.html"); $firstOrderItem->setItemDescription("a handheld optical instrument composed of two telescopes and a focusing device and usually having prisms to increase magnifying ability"); $OrderItems[0] = $firstOrderItem; $secondOrderItem = new \Iyzipay\Model\OrderItem(); $secondOrderItem->setId("BI102"); $secondOrderItem->setName("Game code"); $secondOrderItem->setCategory1("Game"); $secondOrderItem->setCategory2("Online Game Items"); $secondOrderItem->setItemType(\Iyzipay\Model\OrderItemType::VIRTUAL); $secondOrderItem->setPrice("0.5"); $secondOrderItem->setItemUrl("https://www.merchant.com/secondItem.html"); $secondOrderItem->setItemDescription("Game Code can be used for online games"); $OrderItems[1] = $secondOrderItem; $thirdOrderItem = new \Iyzipay\Model\OrderItem(); $thirdOrderItem->setId("BI103"); $thirdOrderItem->setName("Usb"); $thirdOrderItem->setCategory1("Electronics"); $thirdOrderItem->setCategory2("Usb / Cable"); $thirdOrderItem->setItemType(\Iyzipay\Model\OrderItemType::PHYSICAL); $thirdOrderItem->setPrice("0.2"); $thirdOrderItem->setItemUrl("https://www.merchant.com/thirdItem.html"); $thirdOrderItem->setItemDescription("Universal Serial Bus"); $OrderItems[2] = $thirdOrderItem; $request->setOrderItems($OrderItems); # make request $iyziupFormInitialize = \Iyzipay\Model\IyziupFormInitialize::create($request, Config::options()); # print result print_r($iyziupFormInitialize);iyzipay-php/samples/refund_to_balance.php000064400000000543150364332050014641 0ustar00setPaymentId("11654127"); $request->setCallbackUrl("https://www.callback"); # make request $refundToBalance = \Iyzipay\Model\RefundToBalance::create($request, Config::options()); # print result print_r($refundToBalance);iyzipay-php/samples/retrieve_payment_result.php000064400000000631150364332050016165 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPaymentId("1"); $request->setPaymentConversationId("123456789"); # make request $payment = \Iyzipay\Model\Payment::retrieve($request, Config::options()); # print result print_r($payment);iyzipay-php/samples/create_threeds_payment.php000064400000000664150364332050015731 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPaymentId("1"); $request->setConversationData("conversation data"); # make request $threedsPayment = \Iyzipay\Model\ThreedsPayment::create($request, Config::options()); # print result print_r($threedsPayment);iyzipay-php/samples/initialize_apm.php000064400000006406150364332050014211 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::EUR); $request->setCountryCode("DE"); $request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setAccountHolderName("John Doe"); $request->setMerchantCallbackUrl("https://www.merchant.com/callback"); $request->setMerchantErrorUrl("https://www.merchant.com/error"); $request->setMerchantNotificationUrl("https://www.merchant.com/notification"); $request->setApmType(\Iyzipay\Model\ApmType::SOFORT); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $apmInitialize = \Iyzipay\Model\Apm::create($request, Config::options()); # print result print_r($apmInitialize);iyzipay-php/samples/retrieve_sub_merchant.php000064400000000612150364332050015563 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setSubMerchantExternalId("AS49224"); # make request $subMerchant = \Iyzipay\Model\SubMerchant::retrieve($request, Config::options()); # print result print_r($subMerchant);iyzipay-php/samples/initialize_threeds.php000064400000006572150364332050015076 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setInstallment(1); $request->setBasketId("B67832"); $request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setCallbackUrl("https://www.merchant.com/callback"); $paymentCard = new \Iyzipay\Model\PaymentCard(); $paymentCard->setCardHolderName("John Doe"); $paymentCard->setCardNumber("5528790000000008"); $paymentCard->setExpireMonth("12"); $paymentCard->setExpireYear("2030"); $paymentCard->setCvc("123"); $paymentCard->setRegisterCard(0); $request->setPaymentCard($paymentCard); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $threedsInitialize = \Iyzipay\Model\ThreedsInitialize::create($request, Config::options()); # print result print_r($threedsInitialize);iyzipay-php/samples/create_payment_with_reward.php000064400000006642150364332050016614 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setInstallment(1); $request->setBasketId("B67832"); $request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $reward = new \Iyzipay\Model\Reward(); $reward->setRewardAmount("0.1"); $reward->setRewardUsage(1); $request->setReward($reward); $paymentCard = new \Iyzipay\Model\PaymentCard(); $paymentCard->setCardHolderName("John Doe"); $paymentCard->setCardNumber("5451030000000000"); $paymentCard->setExpireMonth("12"); $paymentCard->setExpireYear("2030"); $paymentCard->setCvc("123"); $paymentCard->setRegisterCard(0); $request->setPaymentCard($paymentCard); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $payment = \Iyzipay\Model\Payment::create($request, Config::options()); # print response print_r($payment);iyzipay-php/samples/iyzilink_update_product_sample.php000064400000001345150364332050017515 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setName("Sample Integration"); $request->setDescription("Sample Integration"); $imagePath = __DIR__ . '/images/sample_image.jpg'; $request->setBase64EncodedImage(\Iyzipay\FileBase64Encoder::encode($imagePath)); $request->setPrice(2); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setAddressIgnorable(false); $request->setSoldLimit(1); $request->setInstallmentRequest(false); $token = "AAVmmA"; $response = \Iyzipay\Model\Iyzilink\IyziLinkUpdateProduct::create($request, Config::options(),$token); print_r($response); iyzipay-php/samples/config.php000064400000000570150364332050012454 0ustar00setApiKey('api-key'); $options->setSecretKey('secret-key'); $options->setBaseUrl('https://sandbox-api.iyzipay.com'); return $options; } }iyzipay-php/samples/initialize_pay_with_iyzico.php000064400000006101150364332050016636 0ustar00setLocale(\Iyzipay\Model\Locale::TR); $request->setConversationId("123456789"); $request->setPrice("1"); $request->setPaidPrice("1.2"); $request->setCurrency(\Iyzipay\Model\Currency::TL); $request->setBasketId("B67832"); $request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT); $request->setCallbackUrl("https://www.merchant.com/callback"); $request->setEnabledInstallments(array(2, 3, 6, 9)); $buyer = new \Iyzipay\Model\Buyer(); $buyer->setId("BY789"); $buyer->setName("John"); $buyer->setSurname("Doe"); $buyer->setGsmNumber("+905350000000"); $buyer->setEmail("email@email.com"); $buyer->setIdentityNumber("74300864791"); $buyer->setLastLoginDate("2015-10-05 12:43:35"); $buyer->setRegistrationDate("2013-04-21 15:12:09"); $buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $buyer->setIp("85.34.78.112"); $buyer->setCity("Istanbul"); $buyer->setCountry("Turkey"); $buyer->setZipCode("34732"); $request->setBuyer($buyer); $shippingAddress = new \Iyzipay\Model\Address(); $shippingAddress->setContactName("Jane Doe"); $shippingAddress->setCity("Istanbul"); $shippingAddress->setCountry("Turkey"); $shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $shippingAddress->setZipCode("34742"); $request->setShippingAddress($shippingAddress); $billingAddress = new \Iyzipay\Model\Address(); $billingAddress->setContactName("Jane Doe"); $billingAddress->setCity("Istanbul"); $billingAddress->setCountry("Turkey"); $billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1"); $billingAddress->setZipCode("34742"); $request->setBillingAddress($billingAddress); $basketItems = array(); $firstBasketItem = new \Iyzipay\Model\BasketItem(); $firstBasketItem->setId("BI101"); $firstBasketItem->setName("Binocular"); $firstBasketItem->setCategory1("Collectibles"); $firstBasketItem->setCategory2("Accessories"); $firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $firstBasketItem->setPrice("0.3"); $basketItems[0] = $firstBasketItem; $secondBasketItem = new \Iyzipay\Model\BasketItem(); $secondBasketItem->setId("BI102"); $secondBasketItem->setName("Game code"); $secondBasketItem->setCategory1("Game"); $secondBasketItem->setCategory2("Online Game Items"); $secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL); $secondBasketItem->setPrice("0.5"); $basketItems[1] = $secondBasketItem; $thirdBasketItem = new \Iyzipay\Model\BasketItem(); $thirdBasketItem->setId("BI103"); $thirdBasketItem->setName("Usb"); $thirdBasketItem->setCategory1("Electronics"); $thirdBasketItem->setCategory2("Usb / Cable"); $thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL); $thirdBasketItem->setPrice("0.2"); $basketItems[2] = $thirdBasketItem; $request->setBasketItems($basketItems); # make request $payWithIyzicoInitialize = \Iyzipay\Model\PayWithIyzicoInitialize::create($request, Config::options()); # print result echo '
';
print_r($payWithIyzicoInitialize);iyzipay-php/samples/iyzilink_add_product_sample.php000064400000001311150364332050016754 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setName("Sample Integration");
$request->setDescription("Sample Integration");
$imagePath = __DIR__ . '/images/sample_image.jpg';
$request->setBase64EncodedImage(\Iyzipay\FileBase64Encoder::encode($imagePath));
$request->setPrice(1);
$request->setCurrency(\Iyzipay\Model\Currency::TL);
$request->setAddressIgnorable(false);
$request->setSoldLimit(1);
$request->setInstallmentRequest(false);
$response = \Iyzipay\Model\Iyzilink\IyziLinkSaveProduct::create($request, Config::options());

print_r($response);
iyzipay-php/samples/cancel_with_reason.php000064400000000775150364332050015045 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentId("1");
$request->setIp("85.34.78.112");
$request->setReason(\Iyzipay\Model\RefundReason::OTHER);
$request->setDescription("customer requested for default sample");

# make request
$cancel = \Iyzipay\Model\Cancel::create($request, Config::options());

# print result
print_r($cancel);iyzipay-php/samples/submerchant_payment_item_update.php000064400000000707150364332050017641 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentTransactionId("11606407");
$request->setSubMerchantKey("dVNPU4zjThEHTRqlExIhh7VVSBA=");
$request->setSubMerchantPrice(0.2);

$result = \Iyzipay\Model\SubMerchantPaymentItemUpdate::create($request, Config::options());

print_r($result);


iyzipay-php/samples/cancel.php000064400000000601150364332050012427 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentId("1");
$request->setIp("85.34.78.112");

# make request
$cancel = \Iyzipay\Model\Cancel::create($request, Config::options());

# print result
print_r($cancel);iyzipay-php/samples/retrieve_cards.php000064400000000572150364332050014212 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setCardUserKey("card user key");

# make request
$cardList = \Iyzipay\Model\CardList::retrieve($request, Config::options());

# print result
print_r($cardList);iyzipay-php/samples/retrieve_loyalty.php000064400000001170150364332050014606 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setCurrency(\Iyzipay\Model\Currency::TL);

$paymentCard = new \Iyzipay\Model\PaymentCard();
$paymentCard->setCardHolderName("John Doe");
$paymentCard->setCardNumber("5451030000000000");
$paymentCard->setExpireMonth("12");
$paymentCard->setExpireYear("2030");
$paymentCard->setCvc("123");
$request->setPaymentCard($paymentCard);

$loyalty = \Iyzipay\Model\Loyalty::retrieve($request, Config::options());

# print result
print_r($loyalty);
iyzipay-php/samples/retrieve_iyziup_form_result.php000064400000000623150364332050017065 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setToken("f2e140d2-ba4e-4cde-aa24-ebca72360920");

# make request
$iyziupForm = \Iyzipay\Model\IyziupForm::retrieve($request, Config::options());

# print result
print_r($iyziupForm);iyzipay-php/samples/reporting_payment_transaction.php000064400000000511150364332050017355 0ustar00setconversationId("123456789");
$request->setTransactionDate("2018-10-10");
$request->setPage("1");

$result = \Iyzipay\Model\ReportingPaymentTransaction::create($request, Config::options());

print_r($result);


iyzipay-php/samples/create_sub_merchant.php000064400000005652150364332050015212 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setSubMerchantExternalId("B49224");
    $request->setSubMerchantType(\Iyzipay\Model\SubMerchantType::PERSONAL);
    $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
    $request->setContactName("John");
    $request->setContactSurname("Doe");
    $request->setEmail("email@submerchantemail.com");
    $request->setGsmNumber("+905350000000");
    $request->setName("John's market");
    $request->setIban("TR180006200119000006672315");
    $request->setIdentityNumber("31300864726");
    $request->setCurrency(\Iyzipay\Model\Currency::TL);

    # make request
    $subMerchant = \Iyzipay\Model\SubMerchant::create($request, Config::options());

    # print result
    print_r($subMerchant);
}

function create_private_sub_merchant()
{
    # create request class
    $request = new \Iyzipay\Request\CreateSubMerchantRequest();
    $request->setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setSubMerchantExternalId("S49222");
    $request->setSubMerchantType(\Iyzipay\Model\SubMerchantType::PRIVATE_COMPANY);
    $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
    $request->setTaxOffice("Tax office");
    $request->setLegalCompanyTitle("John Doe inc");
    $request->setEmail("email@submerchantemail.com");
    $request->setGsmNumber("+905350000000");
    $request->setName("John's market");
    $request->setIban("TR180006200119000006672315");
    $request->setIdentityNumber("31300864726");
    $request->setCurrency(\Iyzipay\Model\Currency::TL);

    # make request
    $subMerchant = \Iyzipay\Model\SubMerchant::create($request, Config::options());

    # print result
    print_r($subMerchant);
}

function create_limited_company_sub_merchant()
{
    # create request class
    $request = new \Iyzipay\Request\CreateSubMerchantRequest();
    $request->setLocale(\Iyzipay\Model\Locale::TR);
    $request->setConversationId("123456789");
    $request->setSubMerchantExternalId("AS49224");
    $request->setSubMerchantType(\Iyzipay\Model\SubMerchantType::LIMITED_OR_JOINT_STOCK_COMPANY);
    $request->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
    $request->setTaxOffice("Tax office");
    $request->setTaxNumber("9261877");
    $request->setLegalCompanyTitle("XYZ inc");
    $request->setEmail("email@submerchantemail.com");
    $request->setGsmNumber("+905350000000");
    $request->setName("John's market");
    $request->setIban("TR180006200119000006672315");
    $request->setCurrency(\Iyzipay\Model\Currency::TL);

    # make request
    $subMerchant = \Iyzipay\Model\SubMerchant::create($request, Config::options());

    # print result
    print_r($subMerchant);
}iyzipay-php/samples/delete_card.php000064400000000614150364332050013441 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setCardToken("card token");
$request->setCardUserKey("card user key");

# make request
$card = \Iyzipay\Model\Card::delete($request, Config::options());

# print result
print_r($card);iyzipay-php/samples/iyzilink_retrieve_products_sample.php000064400000000527150364332050020244 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPage(1);
$request->setCount(2);
$response = \Iyzipay\Model\Iyzilink\IyziLinkRetrieveAllProduct::create($request, Config::options());

print_r($response);
iyzipay-php/samples/api_test.php000064400000000245150364332050013016 0ustar00setSubMerchantKey("11654127");
$request->setCallbackUrl("https://www.callback");
$request->setPrice("0.1");

# make request
$settlementToBalance = \Iyzipay\Model\SettlementToBalance::create($request, Config::options());

echo '
';
# print result
print_r($settlementToBalance);iyzipay-php/samples/approve.php000064400000000563150364332050012665 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentTransactionId("1");

# make request
$approval = \Iyzipay\Model\Approval::create($request, Config::options());

# print result
print_r($approval);iyzipay-php/samples/initialize_threeds_with_reward.php000064400000006775150364332050017502 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPrice("1");
$request->setPaidPrice("1.2");
$request->setCurrency(\Iyzipay\Model\Currency::TL);
$request->setInstallment(1);
$request->setBasketId("B67832");
$request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB);
$request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT);
$request->setCallbackUrl("https://www.merchant.com/callback");

$reward = new \Iyzipay\Model\Reward();
$reward->setRewardAmount("0.1");
$reward->setRewardUsage(1);
$request->setReward($reward);

$paymentCard = new \Iyzipay\Model\PaymentCard();
$paymentCard->setCardHolderName("John Doe");
$paymentCard->setCardNumber("5451030000000000");
$paymentCard->setExpireMonth("12");
$paymentCard->setExpireYear("2030");
$paymentCard->setCvc("123");
$paymentCard->setRegisterCard(0);
$request->setPaymentCard($paymentCard);

$buyer = new \Iyzipay\Model\Buyer();
$buyer->setId("BY789");
$buyer->setName("John");
$buyer->setSurname("Doe");
$buyer->setGsmNumber("+905350000000");
$buyer->setEmail("email@email.com");
$buyer->setIdentityNumber("74300864791");
$buyer->setLastLoginDate("2015-10-05 12:43:35");
$buyer->setRegistrationDate("2013-04-21 15:12:09");
$buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$buyer->setIp("85.34.78.112");
$buyer->setCity("Istanbul");
$buyer->setCountry("Turkey");
$buyer->setZipCode("34732");
$request->setBuyer($buyer);

$shippingAddress = new \Iyzipay\Model\Address();
$shippingAddress->setContactName("Jane Doe");
$shippingAddress->setCity("Istanbul");
$shippingAddress->setCountry("Turkey");
$shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$shippingAddress->setZipCode("34742");
$request->setShippingAddress($shippingAddress);

$billingAddress = new \Iyzipay\Model\Address();
$billingAddress->setContactName("Jane Doe");
$billingAddress->setCity("Istanbul");
$billingAddress->setCountry("Turkey");
$billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$billingAddress->setZipCode("34742");
$request->setBillingAddress($billingAddress);

$basketItems = array();
$firstBasketItem = new \Iyzipay\Model\BasketItem();
$firstBasketItem->setId("BI101");
$firstBasketItem->setName("Binocular");
$firstBasketItem->setCategory1("Collectibles");
$firstBasketItem->setCategory2("Accessories");
$firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL);
$firstBasketItem->setPrice("0.3");
$basketItems[0] = $firstBasketItem;

$secondBasketItem = new \Iyzipay\Model\BasketItem();
$secondBasketItem->setId("BI102");
$secondBasketItem->setName("Game code");
$secondBasketItem->setCategory1("Game");
$secondBasketItem->setCategory2("Online Game Items");
$secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL);
$secondBasketItem->setPrice("0.5");
$basketItems[1] = $secondBasketItem;

$thirdBasketItem = new \Iyzipay\Model\BasketItem();
$thirdBasketItem->setId("BI103");
$thirdBasketItem->setName("Usb");
$thirdBasketItem->setCategory1("Electronics");
$thirdBasketItem->setCategory2("Usb / Cable");
$thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL);
$thirdBasketItem->setPrice("0.2");
$basketItems[2] = $thirdBasketItem;
$request->setBasketItems($basketItems);

# make request
$threedsInitialize = \Iyzipay\Model\ThreedsInitialize::create($request, Config::options());

# print result
print_r($threedsInitialize);iyzipay-php/samples/create_marketplace_payment.php000064400000007127150364332050016564 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPrice("1");
$request->setPaidPrice("1.2");
$request->setCurrency(\Iyzipay\Model\Currency::TL);
$request->setInstallment(1);
$request->setBasketId("B67832");
$request->setPaymentChannel(\Iyzipay\Model\PaymentChannel::WEB);
$request->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT);

$paymentCard = new \Iyzipay\Model\PaymentCard();
$paymentCard->setCardHolderName("John Doe");
$paymentCard->setCardNumber("5528790000000008");
$paymentCard->setExpireMonth("12");
$paymentCard->setExpireYear("2030");
$paymentCard->setCvc("123");
$paymentCard->setRegisterCard(0);
$request->setPaymentCard($paymentCard);

$buyer = new \Iyzipay\Model\Buyer();
$buyer->setId("BY789");
$buyer->setName("John");
$buyer->setSurname("Doe");
$buyer->setGsmNumber("+905350000000");
$buyer->setEmail("email@email.com");
$buyer->setIdentityNumber("74300864791");
$buyer->setLastLoginDate("2015-10-05 12:43:35");
$buyer->setRegistrationDate("2013-04-21 15:12:09");
$buyer->setRegistrationAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$buyer->setIp("85.34.78.112");
$buyer->setCity("Istanbul");
$buyer->setCountry("Turkey");
$buyer->setZipCode("34732");
$request->setBuyer($buyer);

$shippingAddress = new \Iyzipay\Model\Address();
$shippingAddress->setContactName("Jane Doe");
$shippingAddress->setCity("Istanbul");
$shippingAddress->setCountry("Turkey");
$shippingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$shippingAddress->setZipCode("34742");
$request->setShippingAddress($shippingAddress);

$billingAddress = new \Iyzipay\Model\Address();
$billingAddress->setContactName("Jane Doe");
$billingAddress->setCity("Istanbul");
$billingAddress->setCountry("Turkey");
$billingAddress->setAddress("Nidakule Göztepe, Merdivenköy Mah. Bora Sok. No:1");
$billingAddress->setZipCode("34742");
$request->setBillingAddress($billingAddress);

$basketItems = array();
$firstBasketItem = new \Iyzipay\Model\BasketItem();
$firstBasketItem->setId("BI101");
$firstBasketItem->setName("Binocular");
$firstBasketItem->setCategory1("Collectibles");
$firstBasketItem->setCategory2("Accessories");
$firstBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL);
$firstBasketItem->setPrice("0.3");
$firstBasketItem->setSubMerchantKey("sub merchant key");
$firstBasketItem->setSubMerchantPrice("0.27");
$basketItems[0] = $firstBasketItem;

$secondBasketItem = new \Iyzipay\Model\BasketItem();
$secondBasketItem->setId("BI102");
$secondBasketItem->setName("Game code");
$secondBasketItem->setCategory1("Game");
$secondBasketItem->setCategory2("Online Game Items");
$secondBasketItem->setItemType(\Iyzipay\Model\BasketItemType::VIRTUAL);
$secondBasketItem->setPrice("0.5");
$secondBasketItem->setSubMerchantKey("sub merchant key");
$secondBasketItem->setSubMerchantPrice("0.42");
$basketItems[1] = $secondBasketItem;

$thirdBasketItem = new \Iyzipay\Model\BasketItem();
$thirdBasketItem->setId("BI103");
$thirdBasketItem->setName("Usb");
$thirdBasketItem->setCategory1("Electronics");
$thirdBasketItem->setCategory2("Usb / Cable");
$thirdBasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL);
$thirdBasketItem->setPrice("0.2");
$thirdBasketItem->setSubMerchantKey("sub merchant key");
$thirdBasketItem->setSubMerchantPrice("0.18");
$basketItems[2] = $thirdBasketItem;
$request->setBasketItems($basketItems);

# make request
$payment = \Iyzipay\Model\Payment::create($request, Config::options());

# print result
print_r($payment);iyzipay-php/samples/refund_with_reason.php000064400000001127150364332050015073 0ustar00setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPaymentTransactionId("1");
$request->setPrice("0.5");
$request->setCurrency(\Iyzipay\Model\Currency::TL);
$request->setIp("85.34.78.112");
$request->setReason(\Iyzipay\Model\RefundReason::OTHER);
$request->setDescription("customer requested for default sample");

# make request
$refund = \Iyzipay\Model\Refund::create($request, Config::options());

# print result
print_r($refund);iyzipay-php/LICENSE000064400000002140150364332050010032 0ustar00The MIT License (MIT)

Copyright (c) 2016 - iyzico Ödeme Hizmetleri A.Ş.  (https://iyzico.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.