Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#5758 by Travin
25 Feb 2018, 18:09
Hi all!
I'm creating Payment Provider. I want to create 4 necessary fields. But if 5th field is filled too, other 4 become not necessary. How can I do that? Thanks!
#5766 by aimeos
26 Feb 2018, 23:09
Yes, in the frontend you have to use JS. In your service provider, you can check if the constraints are valid in the process() method where you should throw an exception if they are not met.