I want to reject payment if some condition is false using event observer. For this what i have to do?
And which observer event i have to use.
I want to reject payment if some condition is false using event observer. For this what i have to do?
And which observer event i have to use.
You can fire this event sales_order_payment_capture
and write your condition inside Observer.php
You can also find all the event list from here events