For example, I want to show hCaptcha for customers from China and reCAPTCHA for anyone else. They are both configured and working.
I had some ideas with an around plugin, but I don't think this is the correct approach in this case.
-
I've successfully swapped them programmatically on the condition, but still don't know how to pass hCaptcha's secret to the swapped captcha instance...Dramorian– Dramorian2025年06月12日 07:52:35 +00:00Commented Jun 12 at 7:52
1 Answer 1
Implementing after plugin on method GetCaptchaTypeFor from CaptchaTypeResolverInterface helped. Case solved.
default