[GH-ISSUE #238] AbstractGateway class bulunamadı hatası #126

Closed
opened 2026-03-03 15:43:18 +03:00 by kerem · 7 comments
Owner

Originally created by @ysfkarakaya on GitHub (Oct 9, 2024).
Original GitHub issue: https://github.com/mewebstudio/pos/issues/238

Fatal error: Uncaught Error: Class "AbstractGateway" not found in C:\laragon\www\ziraat2\test.php:11 Stack trace: #0 {main} thrown in C:\laragon\www\ziraat2\test.php on line 11
böyle bir hata alıyorum yardımcı olabilir misiniz?

Originally created by @ysfkarakaya on GitHub (Oct 9, 2024). Original GitHub issue: https://github.com/mewebstudio/pos/issues/238 Fatal error: Uncaught Error: Class "AbstractGateway" not found in C:\laragon\www\ziraat2\test.php:11 Stack trace: #0 {main} thrown in C:\laragon\www\ziraat2\test.php on line 11 böyle bir hata alıyorum yardımcı olabilir misiniz?
kerem closed this issue 2026-03-03 15:43:18 +03:00
Author
Owner

@nuryagdym commented on GitHub (Oct 9, 2024):

Merhabalar, kutuphane dosyalari eksik, tekrar indirmeyi deneyiniz.

<!-- gh-comment-id:2402162503 --> @nuryagdym commented on GitHub (Oct 9, 2024): Merhabalar, kutuphane dosyalari eksik, tekrar indirmeyi deneyiniz.
Author
Owner

@ysfkarakaya commented on GitHub (Oct 9, 2024):

direk composer ile kuruyorum ama config dosyasında bu hatayı alıyorum baktım gateway içerisinde AbstractGateway dosyası da var.
`<?php

require 'vendor/autoload.php';

// API kullanıcı bilgileri
$account = \Mews\Pos\Factory\AccountFactory::createEstPosAccount(
'ziraat', //pos config'deki ayarın index name'i
'xxx',
'xx',
'xxxx',
AbstractGateway::MODEL_3D_SECURE, //storetype
'xxx',
AbstractGateway::LANG_TR
);

// API kullanıcı hesabı ile paket bir değişkene aktarılıyor
try {
$pos = \Mews\Pos\Factory\PosFactory::createPosGateway($account);
//değere göre API URL'leri test veya production değerler kullanılır.
$pos->setTestMode(true);
} catch (\Mews\Pos\Exceptions\BankNotFoundException | \Mews\Pos\Exceptions\BankClassNullException $e) {
dd($e);
}`

<!-- gh-comment-id:2402193588 --> @ysfkarakaya commented on GitHub (Oct 9, 2024): direk composer ile kuruyorum ama config dosyasında bu hatayı alıyorum baktım gateway içerisinde AbstractGateway dosyası da var. `<?php require 'vendor/autoload.php'; // API kullanıcı bilgileri $account = \Mews\Pos\Factory\AccountFactory::createEstPosAccount( 'ziraat', //pos config'deki ayarın index name'i 'xxx', 'xx', 'xxxx', AbstractGateway::MODEL_3D_SECURE, //storetype 'xxx', AbstractGateway::LANG_TR ); // API kullanıcı hesabı ile paket bir değişkene aktarılıyor try { $pos = \Mews\Pos\Factory\PosFactory::createPosGateway($account); //değere göre API URL'leri test veya production değerler kullanılır. $pos->setTestMode(true); } catch (\Mews\Pos\Exceptions\BankNotFoundException | \Mews\Pos\Exceptions\BankClassNullException $e) { dd($e); }`
Author
Owner

@nuryagdym commented on GitHub (Oct 9, 2024):

Bu hatanin kutuphane ile ilgisi yok, kutuphaneyi projenize nasil eklediginiz nasil kullandiginizla ilgili.
Sagladiginiz kodda bir sorun gormuyorum.
Bu hata konusunda yardimci olamayiz.

<!-- gh-comment-id:2402214022 --> @nuryagdym commented on GitHub (Oct 9, 2024): Bu hatanin kutuphane ile ilgisi yok, kutuphaneyi projenize nasil eklediginiz nasil kullandiginizla ilgili. Sagladiginiz kodda bir sorun gormuyorum. Bu hata konusunda yardimci olamayiz.
Author
Owner

@nuryagdym commented on GitHub (Oct 9, 2024):

Sorunu anladim simdi, sanirim kutuphanenin eski versiyonunu kullaniyorsunuz.

require 'vendor/autoload.php'; sonra

use \Mews\Pos\Gateways\AbstractGateway;

eklemen gerekiyor.

Yeni versiyona gectiyseniz, /docs altindaki orneklere bakmaniz gerekiyor.

<!-- gh-comment-id:2402356402 --> @nuryagdym commented on GitHub (Oct 9, 2024): Sorunu anladim simdi, sanirim kutuphanenin eski versiyonunu kullaniyorsunuz. require 'vendor/autoload.php'; sonra ```php use \Mews\Pos\Gateways\AbstractGateway; ``` eklemen gerekiyor. Yeni versiyona gectiyseniz, `/docs` altindaki orneklere bakmaniz gerekiyor.
Author
Owner

@ysfkarakaya commented on GitHub (Oct 9, 2024):

evet dediğiniz gibiymiş docs içerisinde yer aldığı gibi ve examples klasöründeki gibi ilerledim ama form gödnerince böyle bir sorunla kaşılaştım bu konuda bilginiz var mı peki?
https://prnt.sc/OqWONuHflzLc

<!-- gh-comment-id:2402426883 --> @ysfkarakaya commented on GitHub (Oct 9, 2024): evet dediğiniz gibiymiş docs içerisinde yer aldığı gibi ve examples klasöründeki gibi ilerledim ama form gödnerince böyle bir sorunla kaşılaştım bu konuda bilginiz var mı peki? https://prnt.sc/OqWONuHflzLc
Author
Owner

@nuryagdym commented on GitHub (Oct 9, 2024):

Kutuphanenin hangi versiyonu kullaniyorsunuz? composer.lock icersinde hangi versiyonu kullandiginiz yazar.

EstPos artik kullanmamaniz gerekiyor. EstPos'un hash methodunu bankalar artik desteklemiyor.
kutuphane configinden EstPos'u EstV3Pos olarak degistirmeniz gerekiyor.

github.com/mewebstudio/pos@e9a15fa42a/config/pos_production.php (L18)

<!-- gh-comment-id:2402480878 --> @nuryagdym commented on GitHub (Oct 9, 2024): Kutuphanenin hangi versiyonu kullaniyorsunuz? composer.lock icersinde hangi versiyonu kullandiginiz yazar. EstPos artik kullanmamaniz gerekiyor. EstPos'un hash methodunu bankalar artik desteklemiyor. kutuphane configinden EstPos'u EstV3Pos olarak degistirmeniz gerekiyor. https://github.com/mewebstudio/pos/blob/e9a15fa42a8bece131fa896af37528379221ffa7/config/pos_production.php#L18
Author
Owner

@ysfkarakaya commented on GitHub (Oct 10, 2024):

evet dediğiniz şekilde kullanıyordum zaten. 3d klasörünü kullanıyordum diğer klasördeki kodları da denedim '3d-pay-hosting' sadece bunda çalışıyor diğerlerinde hata alıyorum. İlginiz için teşekkür ederim.

<!-- gh-comment-id:2404211569 --> @ysfkarakaya commented on GitHub (Oct 10, 2024): evet dediğiniz şekilde kullanıyordum zaten. 3d klasörünü kullanıyordum diğer klasördeki kodları da denedim '3d-pay-hosting' sadece bunda çalışıyor diğerlerinde hata alıyorum. İlginiz için teşekkür ederim.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pos#126
No description provided.