Download the PHP package mews/pos without Composer

On this page you can find all versions of the php package mews/pos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pos

Türk bankaları için sanal pos paketi (PHP)

Version Monthly Downloads License PHP Version Require

Bu paket ile amaçlanan; ortak bir arayüz sınıfı ile, tüm Türk banka sanal pos sistemlerinin kullanılabilmesidir.

Desteklenen Payment Gateway'ler / Bankalar:

Gateway Desktekleyen
bankalar
Desteklenen
Ödeme Tipleri
Desteklenen Sorgular
Tosla
(eski AKÖde)
? NonSecure
3DPay
3DHost
İptal
İade
Durum sorgulama
Sipariş Tarihçesini sorgulama
Özel Sorgu
Taksit Oranları
Taksit Fiyatları
IyzicoPos Iyzico NonSecure
3DSecure
3DHost
İptal
İade (v2 API)
Durum sorgulama
Sipariş Tarihçesini sorgulama
Geçmiş İşlemleri sorgulama
Özel Sorgu
Taksit Fiyatları
BIN Sorgulama
PayTrPos PayTr NonSecure
3DPay(Direkt API)
3DHost(iFrame API)
İade
Durum sorgulama
Geçmiş İşlemleri sorgulama
Özel Sorgu
Taksit Oranları
BIN Sorgulama
ParamPos ? NonSecure
3DSecure
3DPay
(test edilmesi gerekiyor)
İptal
İade
Durum sorgulama
Geçmiş İşlemleri sorgulama
Özel Sorgu
Taksit Oranları
BIN Sorgulama
Param3DHostPos ? 3DHost
(test edilmesi gerekiyor)
AkbankPos
(Akbank'ın yeni altyapısı)
Akbank NonSecure
3DSecure
3DPay
3DHost
Tekrarlanan Ödeme
İptal
İade
Sipariş Tarihçesini sorgulama
Geçmiş İşlemleri sorgulama
Özel Sorgu
AssecoPos
(Asseco/Payten)
eski EstV3Pos
Akbank
TEB
İşbank
Şekerbank
Halkbank
Finansbank
Ziraat
NonSecure
3DSecure
3DPay
3DHost
3DPayHost
Tekrarlanan Ödeme
İptal
İade
Durum sorgulama
Sipariş Tarihçesini sorgulama
Özel Sorgu
PayFlex MPI VPOS V4 Ziraat
Vakıfbank VPOS 7/24
İşbank
NonSecure
3DSecure
Tekrarlanan Ödeme
İptal
İade
Durum sorgulama
Özel Sorgu
PayFlex
Common Payment V4
(Ortak Ödeme)
Ziraat
Vakıfbank
İşbank
3DPay
3DHost
Özel Sorgu
Garanti Virtual POS Garanti NonSecure
3DSecure
3DPay
3DHost
Tekrarlanan Ödeme
İptal
İade
Durum sorgulama
Sipariş Tarihçesini sorgulama
Geçmiş İşlemleri sorgulama
Özel Sorgu
BIN Sorgulama
PosNet YapıKredi NonSecure
3DSecure
İptal
İade
Durum sorgulama
Özel Sorgu
PosNetV1
(JSON API)
Albaraka Türk NonSecure
3DSecure
İptal
İade
Durum sorgulama
Özel Sorgu
PayFor Finansbank
Enpara
Ziraat Katılım
NonSecure
3DSecure
3DPay
3DHost
İptal
İade
Durum sorgulama
Sipariş Tarihçesini sorgulama
Geçmiş İşlemleri sorgulama
Özel Sorgu
InterPOS Deniz bank NonSecure
3DSecure
3DPay
3DHost
İptal
İade
Durum sorgulama
Özel Sorgu
Kuveyt POS
TDV2.0.0
Kuveyt Türk NonSecure
3DSecure
Kuveyt POS
TDV2.0.0
SOAP API
Kuveyt Türk İptal
İade
Durum sorgulama
Özel Sorgu
VakifKatilimPos Vakıf Katılım NonSecure (test edilmesi gerekiyor)
3DSecure
3DHost (test edilmesi gerekiyor)
İptal
İade
Durum sorgulama
Sipariş Tarihçesini sorgulama
Geçmiş İşlemleri sorgulama
Özel Sorgu

Ana başlıklar

Özellikler

Farklı Gateway'ler Tek İşlem Akışı

Minimum Gereksinimler

Kurulum

Frameworks

Basic kurulum

Kütüphane belli bir HTTP Client'ile zorunlu bağımlılığı yoktur. PSR-18 HTTP Client standardına uyan herhangi bir kütüphane kullanılabilir. Projenizde zaten kurulu PSR-18 uygulaması varsa otomatik onu kullanır.

Veya hızlı başlangıç için:

Diğer PSR-18 uygulamasını sağlayan kütüphaneler: https://packagist.org/providers/psr/http-client-implementation

Sonra kendi projenizin dizinindeyken alttaki komutu çalıştırarak ayarlar dosyasını projenize kopyalayınız.

Test ortamda geliştirecekseniz test ayarları da kopyalayınız:

Kopyaladıktan sonra ayarlardaki kullanmayacağınız banka ayarları silebilirsiniz.

gateway_configs.test_mode hakkında: Bu ayar yalnızca PayTrPos ve GarantiPos için istek verisini etkiler (banka API'sine test/prod göstergesi gönderir). Diğer tüm gateway'lerde test ve production ortamı ayrımı, yukarıdaki endpoint URL'leri ile yapılır; bu gateway'ler için test_mode: true ayarlamak bir etkisi olmaz ve logger'da uyarı mesajı oluşturur.

Bundan sonra Pos nesnemizi, yeni ayarlarımıza göre oluşturup kullanmamız gerekir. Örnek:

_Kütüphanede yer alan pos_production.php ve pos_test.php ayar dosyaları projenizde direk kullanmayınız! Yukarda belirtildiği gibi kopyalayarak kullanmanız tavsiye edilir._

Farklı Banka Sanal Poslarını Eklemek

Projenize kopyaladığınız ./pos_prod_ayarlar.php dosyasına farklı banka ayarı eklemek için alttaki örneği kullanabilirsiniz.

Örnek Kodlar

Örnekleri /docs ve /examples dizini içerisinde bulabilirsiniz.

/examples kodları çalıştırmak için alttaki bölüme bakınız.

Popup Window'da veya iframe içinde ödeme yapma

Müşteriyi banka sayfasına redirect etmeden iframe üzerinden veya popup window üzerinden ödeme akışı examples'da ve /docs'da 3D ödeme ile örnek PHP ve JS kodlar yer almaktadır.

Troubleshoots

Session sıfırlanması

Cookie session kullandığınızda, kullanıcı gatewayden geri websitenize yönlendirildiğinde session sıfırlanabilir. Response'da samesite değeri set etmeniz gerekiyor. çözüm.

Shared hosting'lerde IP tanımsız hatası

Debugging

Kütüphane PSR-3 standarta uygun logger uygulamayı destekler. Örnekler: https://packagist.org/providers/psr/log-implementation .

Monolog logger kullanım örneği:

Genel Kültür

Ödeme modelleri hakkında bilgi edinmek istiyorsanız bu makaleyi inceleyebilirsiniz.

Otorizasyon, Ön Otorizasyon, Ön Provizyon Kapama İşlemler arasındaki farklar

Refund ve Cancel işlemler arasındaki farklar

Docker ile Örnek Kodların Denenmesi

  1. Makinenizde Docker kurulu olması gerekir.
  2. Örnekleri çalıştırmadan önce banka hesap bilgilerini ortam değişkenleri aracılığıyla sağlamanız gerekmektedir: examples/.env.dist dosyasını examples/.env olarak kopyalayın:

  3. examples/.env dosyasını açıp kullanmak istediğiniz banka(lar)a ait hesap bilgilerini (merchant ID, şifre, API anahtarı vb.) doldurun.
  4. Projenin root klasöründe docker-compose up -d komutu çalıştırınız.
  5. docker container'de composer install çalıştırınız.

Note: localhost port 80 boş olması gerekiyor. Sorunsuz çalışması durumda kod örneklerine http://localhost/asseco/3d/index.php şekilde erişebilirsiniz. http://localhost/ URL projenin examples klasörünün içine bakar.

Unit testler çalıştırma

Projenin root klasöründe bu satırı çalıştırmanız gerekiyor

Değerli yorum, öneri ve katkılarınız için teşekkür ederiz.

Sorun bulursanız veya eklenmesi gereken POS sistemi varsa lütfen issue oluşturun.

License

MIT


All versions of pos with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-simplexml Version *
ext-dom Version *
ext-json Version *
ext-libxml Version *
ext-openssl Version *
ext-zlib Version *
php-http/discovery Version ^1.14
psr/event-dispatcher-implementation Version *
psr/http-client-implementation Version *
psr/log Version ^1.1 || ^2.0 || ^3.0
symfony/serializer Version ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mews/pos contains the following files

Loading the files please wait ...