Code Monkey home page Code Monkey logo

laravel-pos's Introduction

Hi 👋, I'm Muharrem

A full stack developer from Turkey.

More...

🌐 Socials:

LinkedIn Twitter Instagram

💻 Tech Stack:

Java Python PHP NodeJS JavaScript TypeScript Spring Boot Flask Symfony Laravel Socket.io Angular React Redux Postgres MariaDB MySQL SQLite MongoDB Redis RabbitMQ Docker

⚡️ GitHub Stats:



🏆 GitHub Trophies


laravel-pos's People

Contributors

amora2972 avatar mewebstudio avatar unusefulcoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-pos's Issues

qnb finansbank iptal iade para birim kodu hatası

Selamlar,

qnb finansbank iptal iade para birim kodu hatası alıyorum. Kodlarına biraz baktım ancak sana danışmak istedim.

<?xml version="1.0" encoding="UTF-8"?>
<PayforRequest><MerchantId>****</MerchantId><UserCode>***</UserCode><UserPass>***</UserPass><MbrId>5</MbrId><OrgOrderId>16777226</OrgOrderId><SecureType>NonSecure</SecureType><TxnType>Void</TxnType><Currency>TL</Currency><Lang>tr</Lang></PayforRequest>

Class 'Mews\Pos\Pos' not found

Hello,
I am on Laravel 8.16. I am getting this error of Pos class not found, I checked the folder pos/src and I only see PosInterface.php on the root of this folder.


vendor\mews\laravel-pos\src\LaravelPos.php:89
    public function account(array $account)
    {
        $this->account = $account;

        $this->pos = new Pos($this->account, $this->config);

        $this->bank = $this->pos->bank;

        return $this;

    }

Undefined index: mdStatus

laravel-pos paketini kullanıyorum. 3d şifresini girdikten sonra ödemeyi tamamlarken bu hatayı alıyorum.

Undefined index: mdStatus
/src/Gateways/GarantiPos.php satır 725

Aynı dosya içinde 702. Satırda mdStatus lowercase olarak kullanılmış. Bankalar aldığım dönütü incelediğimde de mdStatus lowercase olarak geliyor.

Teşekkürler

Laravel 7.6.1 guzzle versiyon sorunu

Laravel 7.6.1 Yüklerken böyle bir hata alıyorum. guzzle 6.5.2 yüklü.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: guzzlehttp/guzzle[6.5.2, 6.3.3].
    - Can only install one of: guzzlehttp/guzzle[6.3.3, 6.5.2].
    - Can only install one of: guzzlehttp/guzzle[6.3.3, 6.5.2].
    - mews/pos 0.3.8 requires guzzlehttp/guzzle 6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3].
    - mews/laravel-pos 0.3.3 requires mews/pos ^0.3.8 -> satisfiable by mews/pos[0.3.8].
    - Installation request for mews/laravel-pos ^0.3.3 -> satisfiable by mews/laravel-pos[0.3.3].
    - Installation request for guzzlehttp/guzzle (locked at 6.5.2) -> satisfiable by guzzlehttp/guzzle[6.5.2].


Installation failed, reverting ./composer.json to its original content.

Yapıkredi 3d get3dFormData dönüşü XML Hatası

Merhaba;

Yapıkredi pos ile test ederken

get3dFormData() fonksiyonun da aşağıdaki hatayı alıyorum

{message: "String could not be parsed as XML", exception: "Exception",…}
message: "String could not be parsed as XML"
exception: "Exception"
file: "/vendor/mews/pos/src/PosNet.php"
line: 651
trace: [{file: "/vendor/mews/pos/src/PosNet.php", line: 651,…},…]

"System based initialization problem. Please try again later" hatası döndürüyor nedeni nedir? Ne yapmalıyım?

Merhaba sistemi kurup test etmek için çalıştırdım fakat belirttiğim hatayı verdi, en sona yazılan dd($payment->response) kodunu çalıştırdı yani, ekranda sadece return code 99 vs. yazıyor. İstenilen bilgilerde ilk baştaki account kısmında client_id,username vs. olan kısımda tam olarak neyleri kastettiğini anlamadığım için rastgele bilgiler yazmıştım.
Sizce sebebi bu mudur yoksa başka bir sebepten dolayı mı bu hatayı veriyor? Yardımcı olursanız sevinirim. Paylaşımınız için de teşekkürler, emeğinize sağlık :)

3d Secure return with new session

Hello;
When I try to use 3dSecure version the redirect page opens without problem. But after the 3d Form redirects back to the site, all session is lost. The user is also logging out.
Do you have any solutions about it?

Laravel 6 Kurulum hatası

Merhaba, Laravel 6 sürümü için kurulum yapamıyorum yardımcı olur musnuz?

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mews/pos 0.3.8 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - mews/pos 0.3.7 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - mews/pos 0.3.6 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - mews/pos 0.3.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - mews/laravel-pos dev-master requires mews/pos ^0.3.5 -> satisfiable by mews/pos[0.3.5, 0.3.6, 0.3.7, 0.3.8].
    - Installation request for mews/laravel-pos dev-master -> satisfiable by mews/laravel-pos[dev-master].

  To enable extensions, verify that they are enabled in your .ini files:
    - /usr/local/etc/php/7.3/php.ini
    - /usr/local/etc/php/7.3/conf.d/ext-opcache.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Şöyle hata alıyorum

Laravel 7.19.1 dependency rejection

Your requirements could not be resolved to an installable set of packages.

Problem 1
- mews/laravel-pos 0.3.3 requires mews/pos ^0.3.8 -> satisfiable by mews/pos[0.3.8].
- Installation request for mews/laravel-pos ^0.3.3 -> satisfiable by mews/laravel-pos[0.3.3].
- Conclusion: remove symfony/http-foundation v5.1.2
- Conclusion: don't install symfony/http-foundation v5.1.2
- mews/pos 0.3.8 requires symfony/http-foundation ^4.1 -> satisfiable by symfony/http-foundation[4.1.x-dev, 4.2.x-dev, 4.3.x-dev, 4.4.x-dev, v4.1.0, v4.1.0-BETA1, v4.1.0-BETA2, v4.1.0-BETA3, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.0-BETA1, v4.2.0-BETA2, v4.2.0-RC1, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9, v4.3.0, v4.3.0-BETA1, v4.3.0-BETA2, v4.3.0-RC1, v4.3.1, v4.3.10, v4.3.11, v4.3.2, v4.3.3, v4.3.4, v4.3.5, v4.3.6, v4.3.7, v4.3.8, v4.3.9, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.10, v4.4.2, v4.4.3, v4.4.4, v4.4.5, v4.4.6, v4.4.7, v4.4.8, v4.4.9].
- Can only install one of: symfony/http-foundation[4.1.x-dev, v5.1.2].

http-foundation:^5 is a requirement for laravel/framework

https://github.com/laravel/framework/blob/a66caa51ae1a99990ce6a572ade5fd78e4ad3d3a/composer.json#L37

Mews\Pos\Pos erisimlerinin ve dosyanin olmamasi

Merhabalar,

composer ile basarili kurdugum bu pakette, bazi pos paketinin dosyalarini erisemiyorum. Cunku o dosyalar yok. Sanirim ya dosyalarda eksiklik var yada koklu degisikligi gidildigi asikar. Ama bu paketlere yansimamis sanirim.

Konuyla ilgili neler yapabiliriz? Yonlendirebilirseniz sevinirim,

PHP 8

Projeme eklemek istediğimde PHP 8 için uyumlu olmadığı uyarısını alıyorum, bu konuda bir güncelleme yapabilir misiniz?

Kurulum Problemi

Merhaba, kurulumda aşağıdaki gibi bir problem alıyorum, php versiyonum 7.2.5 laravel versiyonu 7.3

Problem 1
    - Installation request for mews/laravel-pos ^0.3.8 -> satisfiable by mews/laravel-pos[0.3.8].
    - Conclusion: remove guzzlehttp/guzzle 7.3.0
    - Conclusion: don't install guzzlehttp/guzzle 7.3.0
    - mews/laravel-pos 0.3.8 requires mews/pos ^0.4.3 -> satisfiable by mews/pos[0.4.10, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9].
    - mews/pos 0.4.10 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - mews/pos 0.4.3 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - mews/pos 0.4.4 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - mews/pos 0.4.5 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - mews/pos 0.4.6 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - mews/pos 0.4.7 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - mews/pos 0.4.8 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - mews/pos 0.4.9 requires guzzlehttp/guzzle ^6.3.3 -> satisfiable by guzzlehttp/guzzle[6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[6.3.3, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.4.0, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.4.1, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.0, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.1, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.2, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.3, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.4, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.5, 7.3.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.3.0].
    - Installation request for guzzlehttp/guzzle (locked at 7.3.0, required as ^6.3.1|^7.0.1) -> satisfiable by guzzlehttp/guzzle[7.3.0].


Installation failed, reverting ./composer.json to its original content.

C:\xampp\htdocs\ticaret
λ php artisan --version
Laravel Framework 7.30.4

PosNet.php $this->data->approved non-object hatası mcrypt_encrypt problemi

PosNet.php dosyasında

    $this->crypt = function_exists('mcrypt_encrypt') ?
        new PosNetCrypt :
        null;

$this->crypt karşılığı sunucuda mcrypt_encrypt yoksa null bırakılmış buda diğer işlemlerin aksamasına sebep oluyor ve $this->data->approved non-object hatasına sebebiyet veriyor. null yerine bir hata fırlatılsa daha iyi olur. Read.me dosyasında minimum gereksinim kısmına da bilgi amaçlı eklenebilir.

hata: yapı kredi get3dFormData

     $pos = \Mews\LaravelPos\Facades\LaravelPos::instance();
     $pos = $pos->account($account);
     $pos = $pos->prepare($order, "pay", $card);
     $return = $pos->get3DFormData();

Şeklinde çalıştırdığım zaman,
#data: {#1408 ▼ +"approved": "0" +"respCode": "E181" +"respText": "Encryption Key bulunamadı." }

test olarak

get3dFormData fonksiyonuna log attığım zaman cart ve account boş olduklarını fark ettim nasıl çözüm önerirsiniz? log:

{
  "method": "get3DFormData",
  "account": {},
  "card": {},
  "order": {
    "id": "2134214124",
    "email": "[email protected]",
    "name": "asd asd",
    "ip": "XXXXX",
    "installment": "00",
    "transaction": "pay",
    "currency": "TL",
    "amount": 1000,
    "success_url": "xxxxx",
    "fail_url": "xxxxx",
    "lang": "tr",
    "rand": "680789001632293066"
  }
}

3D İçin Örnek Döküman

3d aşağıdaki şekilde gönderdiğimde Undefined index: HASHPARAMS hatası alıyorum. 3d için bir örnek döküman ekleyebilir misiniz?

$pos->account([
'bank' => 'isbank',
'model' => '3d',
'client_id' => 'XXXXX',
'username' => 'XXXXX',
'password' => 'XXXXX',
'store_key' => 'XXXXX',
'env' => '',
]);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.