Page 1 of 1

Create Payment service

Posted: 04 Sep 2017, 12:54
by MirkoPinna
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'

Re: Create Payment service

Posted: 04 Sep 2017, 13:52
by MirkoPinna
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;