<?php
require_once('../IyzipayBootstrap.php');
require_once('config.php');
# create request class
$request = new \Iyzipay\Request\RetrievePaymentRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId($_SESSION["sepetno"]);
$request->setPaymentId("1");
$request->setPaymentConversationId($_SESSION["sepetno"]);
# make request
$payment = \Iyzipay\Model\Payment::retrieve($request, Config::options());
# print result
print_r($payment);