Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 599 Bytes
<?php
require_once('config.php');
# create request class
$request = new \Iyzipay\Request\CreateRefundRequest();
$request->setLocale(\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);
You can’t perform that action at this time.