How to install Postfinance

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
jiguh
Posts: 3
Joined: 07 Jul 2022, 05:11

How to install Postfinance

Post by jiguh » 07 Jul 2022, 06:48

aimeos-laravel: 2022.04
Laravel Framework 9.19.0
Composer version 2.3.7
PHP 8.1.3
Laragon Win10

Someone can guide me on how to implement a Postfinance payment gateway for Laravel?

Already tried https://aimeos.org/docs/User_Manual/Adm ... ostfinance but got errors:
Problem 1
- Root composer.json requires bummzack/omnipay-postfinance ~0.1 -> satisfiable by bummzack/omnipay-postfinance[0.1.0, 0.1.1, 0.1.2].
- Conclusion: don't install symfony/http-foundation v6.1.2 (conflict analysis result)
- Conclusion: don't install laravel/framework v9.18.0 (conflict analysis result)
- Conclusion: don't install laravel/framework v9.19.0 (conflict analysis result)
- Root composer.json requires aimeos/aimeos-laravel ~2022.04 -> satisfiable by aimeos/aimeos-laravel[2022.04.1, ..., 2022.04.x-dev].
- aimeos/aimeos-laravel[2022.04.1, ..., 2022.04.x-dev] require laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.2.0, ..., 9.x-dev].
- laravel/framework[v9.2.0, ..., 9.x-dev] require symfony/http-foundation ^6.0 -> satisfiable by symfony/http-foundation[v6.0.0-BETA1, ..., 6.2.x-dev].
- Conclusion: don't install symfony/http-foundation v6.0.10 (conflict analysis result)


Composer.json:
{
"name": "aimeos/aimeos",
"description": "Aimeos ecommerce and shop system",
"keywords": ["aimeos", "ecommerce", "shop", "laravel", "distribution"],
"license": "MIT",
"type": "project",
"repositories": [{
"type": "composer",
"url": "https://packages.aimeos.org/aimeoscom"
}, {
"type": "path",
"url": "packages/*"
}],
"require": {
"php": "^8.0.10",
"composer-runtime-api": "^2.1",
"aimeos/aimeos-laravel": "~2022.04",
"aimeos/ai-cms-grapesjs": "~2022.04",
"guzzlehttp/guzzle": "^7.2",
"laravel/breeze": "^1.9",
"laravel/framework": "^9.2",
"laravel/sanctum": "^2.14.1",
"laravel/tinker": "^2.7"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi",
"App\\Composer::configure",
"@php artisan migrate",
"App\\Composer::setup",
"App\\Composer::account",
"App\\Composer::success"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan vendor:publish --tag=public --ansi --force"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}

User avatar
aimeos
Administrator
Posts: 7918
Joined: 01 Jan 1970, 00:00

Re: How to install Postfinance

Post by aimeos » 07 Jul 2022, 11:31

Guzzle 7.2+ is required in your composer.json, but the bummzack/omnipay-postfinance driver requires Guzzle 6.3.

We've created a PR to allow 7.x too but don't know when it will be merge:
https://github.com/bummzack/omnipay-postfinance/pull/11
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

jiguh
Posts: 3
Joined: 07 Jul 2022, 05:11

Re: How to install Postfinance

Post by jiguh » 08 Jul 2022, 05:35

It seems they have merged it but still some errors:

Problem 1
- Root composer.json requires bummzack/omnipay-postfinance ~0.1 -> satisfiable by bummzack/omnipay-postfinance[0.1.0, 0.1.1, 0.1.2].
- Conclusion: don't install symfony/http-foundation[v6.1.2] | install omnipay/common[v2.3.3] (conflict analysis result)
- bummzack/omnipay-postfinance[0.1.0, ..., 0.1.2] require omnipay/common ~2.0 -> satisfiable by omnipay/common[v2.0.0, ..., 2.5.x-dev].
- Conclusion: don't install omnipay/common v2.3.3 (conflict analysis result)
- Conclusion: don't install omnipay/common 2.5.2 (conflict analysis result)
- Root composer.json requires laravel/framework ^9.2 -> satisfiable by laravel/framework[v9.2.0, ..., 9.x-dev].
- omnipay/common[v2.3.4, ..., v2.5.0] require symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[v2.1.0, ..., 2.8.x-dev].
- You can only install one version of a package, so only one of these can be installed: symfony/http-foundation[v2.1.0, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.4.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev, v6.0.0-BETA1, ..., 6.2.x-dev].
- Conclusion: install one of symfony/http-foundation[v6.0.10, v6.1.2] (conflict analysis result)

User avatar
aimeos
Administrator
Posts: 7918
Joined: 01 Jan 1970, 00:00

Re: How to install Postfinance

Post by aimeos » 08 Jul 2022, 08:52

The maintainer didn't tag a new version and to get the latest code including the patch, you have to run:

Code: Select all

composer req bummzack/omnipay-postfinance:dev-master
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

jiguh
Posts: 3
Joined: 07 Jul 2022, 05:11

Re: How to install Postfinance

Post by jiguh » 08 Jul 2022, 14:35

And lastly, what value should I put on those red fields please?
Image
Please let me know if I should do/add something that may not have been mentioned in the following docs: https://aimeos.org/docs/User_Manual/Adm ... ostfinance

User avatar
aimeos
Administrator
Posts: 7918
Joined: 01 Jan 1970, 00:00

Re: How to install Postfinance

Post by aimeos » 08 Jul 2022, 14:48

You are referring to old documentation, please see here:
https://aimeos.org/docs/latest/manual/s ... ostfinance

There's inline help available if you click on the labels before the input fields or on the button with the "?" sign at the top right.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply