Create Payment service

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!
MirkoPinna
Posts: 16
Joined: 04 Sep 2017, 12:35

Create Payment service

Post by MirkoPinna » 04 Sep 2017, 12:54

Hi, i am trying to implement a Paymen service to include Mangopay in my payment choices.
I created a MangoPay.php and i did put it into
/ext/ai-mangopay/lib/custom/src/MShop/Service/Provider/Payment/MangoPay.php
Then i added the new payment method using the admin console.
But i get the following error:

Code: Select all

Undefined constant 'Aimeos\MShop\Service\Provider\Payment'

MirkoPinna
Posts: 16
Joined: 04 Sep 2017, 12:35

Re: Create Payment service

Post by MirkoPinna » 04 Sep 2017, 13:52

Ok i found the error
in the aimeos documentation the skeleton is wrong.
instead of:

Code: Select all

namespace \Aimeos\MShop\Service\Provider\Payment;
use:

Code: Select all

namespace Aimeos\MShop\Service\Provider\Payment;

Post Reply