I have a problem that I can’t solve, I need to stop the execution of the payment process, if my model returns false
i have:
appcodevendorSalesetcwebapi_restevents.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../lib/internal/Magento/Framework/Event/etc/events.xsd">
<event name="sales_order_place_before">
<observer name="order_place_before" instance="vendorSalesModelBefore" />
</event>
</config>
if I use a checkmo payment method (magento standard) the verification that I do in the model works, but if I use the ADYEN payment method, it stays on the payment page, but it does not return an error, I wanted my MODEL to run before the Adyen module
how do i make my MODEL run first, and if it returns false, don’t process payment with Adyen