I have created a custom status called "custom_canceled" and associated it with the "canceled" state. I also have another status called "Canceled" associated with the state "canceled", this is the one used by default when an order is canceled.
I need that when canceling an order that has been made using the payment method "banktransfer" the order status will be "custom_canceled" and not "canceled" (default status) but I have no idea how I can do this.
I am working on Magento 2.3.5-p1. I appreciate any information to guide me.