installing omnipay driver

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!
User avatar
bilginkilic
Posts: 34
Joined: 05 Jul 2020, 07:08

installing omnipay driver

Post by bilginkilic » 28 Jul 2020, 06:24

I have installed aimeos laravel
aimeos ai-payment extension and it is said that I need to install omnipay driver.
https://aimeos.org/docs/User_Manual/Adm ... st#Omnipay
If you use composer, you have to add the Omnipay payment driver you want to use to your composer.json and run composer update.

I will use Yandex.Kassa so that I found this link

https://github.com/thephpleague/omnipay ... t-gateways

So how can I do it? I mean which line of commands I need to make according to :
https://github.com/hiqdev/omnipay-yandex-kassa I mean how to edit composer according to this omnipay in order to see this yandex kassa as a service in payment service of aimeos laravel admin backend.
@bilginkilic_ (twitter)

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

Re: installing omnipay driver

Post by aimeos » 29 Jul 2020, 16:56

You have to install the "hiqdev/omnipay-yandex-kassa" package using:

Code: Select all

composer req hiqdev/omnipay-yandex-kassa
The driver doesn't contain any documentation regarding the required settings and the source code only contains these two configuration options:
* shopId -> ...
* secret -> ...
https://github.com/hiqdev/omnipay-yande ... hp#L54-L72

In the Aimeos service panel, you have to use:
* type -> Yandex.Kassa
https://aimeos.org/docs/User_Manual/Adm ... st#Omnipay
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
bilginkilic
Posts: 34
Joined: 05 Jul 2020, 07:08

Re: installing omnipay driver

Post by bilginkilic » 30 Jul 2020, 07:28

installed ai-payments

and then
composer require league/omnipay:^3 hiqdev/omnipay-yandex-kassa

but when I go to back end and try to add service, payment, the provider of yandex kassa do not appear, what else should we do to see it?

now only options are directdebit, paypalexpress, postpay and prepay
@bilginkilic_ (twitter)

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

Re: installing omnipay driver

Post by aimeos » 31 Jul 2020, 09:35

Add a new service item with type "Payment" and choose "Omnipay" in the "Provider" fields. Then, add the configuration settings in the right Option/Value table like written above.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
bilginkilic
Posts: 34
Joined: 05 Jul 2020, 07:08

Re: installing omnipay driver

Post by bilginkilic » 02 Aug 2020, 16:16

I have installed ai payments, omnipay, yandex.kassa driver; all successful but now I get this error;


My configuration is like this: When I shop I get this error: Class '\Omnipay\Yandex.Kassa\Gateway' not found how can I fix it?
https://prnt.sc/tsqsvr
https://prnt.sc/tsqt7g

my composer json

Code: Select all

    "require": {
        "php": "^7.2",
        "aimeos/ai-payments": "~2020.07.1",
        "aimeos/aimeos-laravel": "~2020.07",
        "composer/installers": "^1.9",
        "fideloper/proxy": "^4.0",
        "hiqdev/omnipay-yandex-kassa": "^3.0",
        "laravel/framework": "^6.0",
        "laravel/tinker": "^1.0",
        "laravel/ui": "^1.0",
        "omnipay/common": "^3.0",
        "php-http/guzzle6-adapter": "^1.0",
        "php-http/httplug": "^1.0"
    },
@bilginkilic_ (twitter)

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

Re: installing omnipay driver

Post by aimeos » 02 Aug 2020, 16:25

Looking at the source code of the driver i think "type" should be "YandexKassa" (without dot in between):
https://github.com/hiqdev/omnipay-yande ... ay.php#L11
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
bilginkilic
Posts: 34
Joined: 05 Jul 2020, 07:08

Re: installing omnipay driver

Post by bilginkilic » 02 Aug 2020, 16:30

Now getting this error: The capture parameter is required
any suggestion? I have added capture parameter but it did not worked also.
https://prnt.sc/tsqy9x
https://prnt.sc/tt0dkg
@bilginkilic_ (twitter)

User avatar
bilginkilic
Posts: 34
Joined: 05 Jul 2020, 07:08

Re: installing omnipay driver

Post by bilginkilic » 05 Aug 2020, 06:29

I manually set capture parameter for omnipay

$this->parameters->set('capture',1);

I was expecting it should get the data parameter defined in admin panel.
@bilginkilic_ (twitter)

KindWarhog
Posts: 1
Joined: 19 Sep 2020, 05:40

Re: installing omnipay driver

Post by KindWarhog » 19 Sep 2020, 05:43

bilginkilic wrote: 05 Aug 2020, 06:29 I manually set capture parameter for omnipay

$this->parameters->set('capture',1);

I was expecting it should get the data parameter defined in admin panel.
Thank you so much for your great information, It is too useful for me.

Post Reply