1. Go to this page and download the library: Download omerkamcili/denizbank library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
omerkamcili / denizbank example snippets
composer
use OmerKamcili\DenizBank\DenizbankPay3d;
$payment = new DenizbankPay3d();
$payment->setShopCode('3123');
$payment->setMerchantPass('gDg1N');
$payment->setSuccessUrl('http://successurl');
$payment->setFailUrl('http://failurl');
// Testleri bitirdiğinizde buraya canlı ortamın 3d pay url'sini gireceksiniz.
//$this->setPay3dUrl('');
$payment->setAmount(20);
$payment->setOrderId(3388483);
// Form oluşturuluyor
$result = $payment->getPaid('5200190046477986', '319', '0121', '1');
echo $result;
// 3D işlemi sonrasnda banka post dönüyor, bu dönen postu result methoduna parametre olarak veriyoruz.
$payment = new PaymentDenizbank();
$payment->setMerchantPass('gDg1N');
$result = $payment->result($_POST);
// Array döndürüyor, işlem başarılıysa error => '00' dönecek
print_r($result);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.