How to add additional charges in PayPal?
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 28
- Joined: 21 May 2019, 09:52
Re: How to add additional charges in PayPal?
Can you please give some idea about How to write a service provider decorator and how to use it with payment gateway?aimeos wrote:The field is unknown to the rest of the Aimeos code so this won't work if you don't adapt all code that should use the value from this field.
An easier solution would be to write a service provider decorator that adds the setup costs to the basket during checkout in either the delivery or payment selection step (if it's the only delivery option, the costs will be added immediately when adding a product by the Autofill basket plugin). You can add the costs not only as shipping or payment costs but also as delivery/payment related "product" line if you add the setup costs as delivery/payment price value instead of price costs.
Thanks
Harpal Singh
Re: How to add additional charges in PayPal?
Here's the documentation: https://aimeos.org/docs/Developers/Libr ... _decorator
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 28
- Joined: 21 May 2019, 09:52
Re: How to add additional charges in PayPal?
Can I use Costs decorator outside from vendors in my extension folder of project.
I want to override the /vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Service/Provider/Decorator.Costs.php class.
or Can I override the PaypalExpress Class?
If possible then how and where I can find/create clone of these classes.
Thanks
Harpal Singh
I want to override the /vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Service/Provider/Decorator.Costs.php class.
or Can I override the PaypalExpress Class?
If possible then how and where I can find/create clone of these classes.
Thanks
Harpal Singh
-
- Posts: 28
- Joined: 21 May 2019, 09:52
Re: How to add additional charges in PayPal?
I have created PayPalExpress Provider in my ext but it shows both the providers while in admin.Harpal Singh wrote:Can I use Costs decorator outside from vendors in my extension folder of project.
I want to override the /vendor/aimeos/aimeos-core/lib/mshoplib/src/MShop/Service/Provider/Decorator.Costs.php class.
or Can I override the PaypalExpress Class?
If possible then how and where I can find/create clone of these classes.
Thanks
Harpal Singh
What I want is to override some functions of PayPalExpress(in my extension) class.
Thanks
Harpal Singh
Re: How to add additional charges in PayPal?
You have to name your overwritten class differently and use that in the "provider" field of the service panel in the admin interface
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star