Merhabalar, Omnipay gateway ile iyzico entegrasyonu yapmaya çalışıyorum. Fakat kurduğum paketlerin versiyonları birbirleriyle uyumlu değil gibi hatalar alıyorum. packagist.org üzerinden kontrol ettiğimde tüm gereklilikleri sağlıyor. Oluşan hata da istenilen versiyonu kurmaya çalıştığımda da aynı hatayı alıyorum. Her zaman bir üst versiyonu kurmamı söylüyor.
Composer ile paketin istediğim versiyonunu neden kuramıyorum. Yardımcı olursanız sevinirim.
Kurmaya çalıştığım paket : yasinkuyu/omnipay-iyzico
composer.json
"require": {
"php": "^7.3|^8.0",
"barryvdh/laravel-dompdf": "^0.9.0",
"doctrine/dbal": "^3.1",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"ignited/laravel-omnipay": "dev-main",
"iyzico/iyzipay-php": "^2.0",
"laravel/framework": "^8.12",
"laravel/socialite": "^5.2",
"laravel/tinker": "^2.5",
"marvel/shop": "dev-main",
"messagebird/php-rest-api": "^2.0",
"moneyphp/money": "^3.3",
"omnipay/common": "dev-main",
"omnipay/stripe": "dev-main",
"php-http/discovery": "^1.14",
"php-http/message": "^1.13",
"symfony/http-foundation": "^5.4",
"twilio/sdk": "^6.25"
},
Aldığım hata
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yasinkuyu/omnipay-iyzico * -> satisfiable by yasinkuyu/omnipay-iyzico[dev-main].
- yasinkuyu/omnipay-iyzico dev-main requires omnipay/common 3 -> satisfiable by omnipay/common[dev-master, v3.0-alpha.1, ..., v3.2.0] from composer repo (https://repo.packagist.org) but omnipay/common[dev-main] from path repo (packages/omnipay-common) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require yasinkuyu/omnipay-iyzico:*" to figure out if any version is installable, or "composer require yasinkuyu/omnipay-iyzico:2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.