sabirsiz61
OpenCart-TR
- Katılım
- 25 Haz 2015
- Mesajlar
- 2
- Tepkime puanı
- 0
- Puanları
- 0
merhaba arkadaşlar ben biraz araştırdım fakat bulamadım eski versiyon var yeni versiyon yok..
Örnek kodlar:
<?php
require_once('../IyzipayBootstrap.php');
require_once('Sample.php');
IyzipayBootstrap::init();
$sample = new InstallmentSample();
$sample->should_retrieve_installment_info();
$sample->should_retrieve_installment_info_for_all_banks();
class InstallmentSample
{
public function should_retrieve_installment_info()
{
# create request class
$request = new \Iyzipay\Request\RetrieveInstallmentInfoRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setBinNumber("454671");
$request->setPrice("1");
# make request
$installmentInfo = \Iyzipay\Model\InstallmentInfo::retrieve($request, Sample:ptions());
# print result
print_r($installmentInfo);
}
public function should_retrieve_installment_info_for_all_banks()
{
# create request class
$request = new \Iyzipay\Request\RetrieveInstallmentInfoRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPrice("1");
# make request
$installmentInfo = \Iyzipay\Model\InstallmentInfo::retrieve($request, Sample:ptions());
# print result
print_r($installmentInfo);
}
}
birde eski sistemde calışan kodlAR
<?php
if ( empty($special) )
{
$fiyat = $price;
}
else
{
$fiyat = $special;
}
$fduzenle = preg_replace('/[^.%0-9]/', '', $fiyat);
$yenifiyat = (($fduzenle)*100);
date_default_timezone_set("UTC");
$amount = $yenifiyat;
$currency = 'TL';
$timestamp = date('YmdHis');
$apiID = "im029560900451bfb4b2ba1441289459";// iyzico api ID nizi girin
$publicKey = sha1($apiID);
$hash = sha1($apiID . $timestamp . $amount);
echo "<iframe border='0' scrolling='no' height='370' width='760' src='https://www.iyzico.com/installment/amount/{$amount}/currency/{$currency}/publicKey/{$publicKey}/timeStamp/{$timestamp}/hash/{$hash}' seamless='seamless'></iframe>";
?>
BİLGİSİ OLAN MESAJ atarsa sevinirim
www.pazar61.com
Örnek kodlar:
<?php
require_once('../IyzipayBootstrap.php');
require_once('Sample.php');
IyzipayBootstrap::init();
$sample = new InstallmentSample();
$sample->should_retrieve_installment_info();
$sample->should_retrieve_installment_info_for_all_banks();
class InstallmentSample
{
public function should_retrieve_installment_info()
{
# create request class
$request = new \Iyzipay\Request\RetrieveInstallmentInfoRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setBinNumber("454671");
$request->setPrice("1");
# make request
$installmentInfo = \Iyzipay\Model\InstallmentInfo::retrieve($request, Sample:ptions());
# print result
print_r($installmentInfo);
}
public function should_retrieve_installment_info_for_all_banks()
{
# create request class
$request = new \Iyzipay\Request\RetrieveInstallmentInfoRequest();
$request->setLocale(\Iyzipay\Model\Locale::TR);
$request->setConversationId("123456789");
$request->setPrice("1");
# make request
$installmentInfo = \Iyzipay\Model\InstallmentInfo::retrieve($request, Sample:ptions());
# print result
print_r($installmentInfo);
}
}
birde eski sistemde calışan kodlAR
<?php
if ( empty($special) )
{
$fiyat = $price;
}
else
{
$fiyat = $special;
}
$fduzenle = preg_replace('/[^.%0-9]/', '', $fiyat);
$yenifiyat = (($fduzenle)*100);
date_default_timezone_set("UTC");
$amount = $yenifiyat;
$currency = 'TL';
$timestamp = date('YmdHis');
$apiID = "im029560900451bfb4b2ba1441289459";// iyzico api ID nizi girin
$publicKey = sha1($apiID);
$hash = sha1($apiID . $timestamp . $amount);
echo "<iframe border='0' scrolling='no' height='370' width='760' src='https://www.iyzico.com/installment/amount/{$amount}/currency/{$currency}/publicKey/{$publicKey}/timeStamp/{$timestamp}/hash/{$hash}' seamless='seamless'></iframe>";
?>
BİLGİSİ OLAN MESAJ atarsa sevinirim
www.pazar61.com