Eğer eft kullanmıyorsanız şu şekilde denermisin.
public function callback()
{
if (!isset($_POST) || empty($_POST)) {
echo "OK";
exit;
}
$this->load->model('checkout/order');
$this->paytr->chkHash($_POST, 'iframe');
$this->load->language('extension/payment/paytr_checkout');
$this->paytr->iframeCallback($_POST, $this->oc_version);
}Seninki Burası
public function callback()
{
if (!isset($_POST) || empty($_POST)) {
echo "OK";
exit;
}
$this->load->model('checkout/order');
if ($_POST['payment_type'] == 'eft') {
$this->paytr->chkHash($_POST, 'eft');
$this->load->language('extension/payment/paytr_eft_transfer');
$this->paytr->eftCallback($_POST, $this->oc_version);
} else {
$this->paytr->chkHash($_POST, 'iframe');
$this->load->language('extension/payment/paytr_checkout');
$this->paytr->iframeCallback($_POST, $this->oc_version);
}
}