mirror of
https://github.com/mewebstudio/pos.git
synced 2026-04-26 09:55:52 +03:00
[GH-ISSUE #238] AbstractGateway class bulunamadı hatası #126
Labels
No labels
PayFlexV4
TROY
akbankpos
bug
duplicate
enhancement
garanti
help wanted
isbank
kuveyt
payten
posnet
pull-request
vakifbank
ziraat
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pos#126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@nuryagdym commented on GitHub (Oct 9, 2024):
Merhabalar, kutuphane dosyalari eksik, tekrar indirmeyi deneyiniz.
@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);
}`
@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.
@nuryagdym commented on GitHub (Oct 9, 2024):
Sorunu anladim simdi, sanirim kutuphanenin eski versiyonunu kullaniyorsunuz.
require 'vendor/autoload.php'; sonra
eklemen gerekiyor.
Yeni versiyona gectiyseniz,
/docsaltindaki orneklere bakmaniz gerekiyor.@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
@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)@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.