Stripe Payments not appearing as option in Services or on Checkout

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
xarga
Posts: 43
Joined: 16 Dec 2019, 22:54

Stripe Payments not appearing as option in Services or on Checkout

Post by xarga » 16 Dec 2019, 23:06

I'm running Aimeos 2019.10 on Larvel 6.7 and have installed ai-payments and ominipay/stripe.

I'm developing on Windows 10 using XAMPP for Windows 7.2.24 (PHP 7.2)

Aimeos is running fine but Stripe does not appear as an option in the backend Services. Nor does it appear as an option on checkout.

(I've run composer update, php artisan config:clear and aimeos:cache

I've defined the stripe keys in .env. Are there additional steps required to get this fully implemented? Would be grateful if anyone can point me in the right direction.

Here's my composer.json file.

Code: Select all

{
    "name": "aimeos/aimeos",
    "description": "Aimeos shop system",
    "keywords": ["Aimeos", "e-commerce", "shop", "laravel", "distribution"],
    "license": "MIT",
    "type": "project",
    "prefer-stable": true,
    "minimum-stability": "dev",
    "repositories": [{
        "type": "composer",
        "url": "https://packages.aimeos.org/aimeoscom"
    }],
    "require": {
        "php": "^7.2",
        "aimeos/ai-payments": "^2019.10",
        "aimeos/aimeos-laravel": "~2019.10",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "^6.0",
        "laravel/tinker": "^1.0",
        "laravel/ui": "^1.0",
        "league/omnipay": "^3.0",
        "omnipay/stripe": "^3.1"
    },
    "require-dev": {
        "facade/ignition": "^1.4",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^3.0",
        "phpunit/phpunit": "^8.0"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "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');\"",
            "@php -r \"mkdir('public/files'); mkdir('public/preview'); mkdir('public/uploads');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi",
            "App\\Composer::configure",
            "@php artisan migrate",
            "App\\Composer::setup",
            "App\\Composer::account"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=public --force"
        ]
    }
}


Here are the relevant components of my installation

Code: Select all

aimeos/ai-admin-jqadm                 2019.10.7  Aimeos ai-admin-jqadm extension
aimeos/ai-admin-jsonadm               2019.10.2  Aimeos ai-admin-jsonadm extension
aimeos/ai-client-html                 2019.10.10 Aimeos ai-client-html extension
aimeos/ai-client-jsonapi              2019.10.2  Aimeos JSON API extension
aimeos/ai-controller-frontend         2019.10.5  Aimeos ai-controller-frontend extension
aimeos/ai-controller-jobs             2019.10.4  Aimeos ai-controller-jobs extension
aimeos/ai-gettext                     2019.10.1  Aimeos Gettext extension
aimeos/ai-laravel                     2019.10.2  Laravel adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-payments                    2019.10.1  Payment extension for Aimeos web shops and e-commerce solutions
aimeos/ai-swiftmailer                 2019.10.1  SwiftMailer adapter for Aimeos web shops and e-commerce solutions
aimeos/aimeos-core                    2019.10.9  Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel                 2019.10.1  Professional, full-featured and high performance Laravel e-commerce package for 
laravel/framework                     v6.7.0     The Laravel Framework.
laravel/tinker                        v1.0.10    Powerful REPL for the Laravel framework.
laravel/ui                            v1.1.1     Laravel UI utilities and presets.
omnipay/common                        v3.0.2     Common components for Omnipay payment processing library
omnipay/stripe                        v3.1.0     Stripe driver for the Omnipay payment processing library

xarga
Posts: 43
Joined: 16 Dec 2019, 22:54

Re: Stripe Payments not appearing as option in Services or on Checkout

Post by xarga » 17 Dec 2019, 06:41

Didn't realize that one has to create a new Stripe service record in the Services option in the back-end and populate the required stripe variables and keys.

Now it is appearing and payments re working in test mode.

Post Reply