Create Payment service
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 16
- Joined: 04 Sep 2017, 12:35
Create Payment service
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:
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'
-
- Posts: 16
- Joined: 04 Sep 2017, 12:35
Re: Create Payment service
Ok i found the error
in the aimeos documentation the skeleton is wrong.
instead of:
use:
in the aimeos documentation the skeleton is wrong.
instead of:
Code: Select all
namespace \Aimeos\MShop\Service\Provider\Payment;
Code: Select all
namespace Aimeos\MShop\Service\Provider\Payment;