Currently i have a website with woocomerce. I have a spanish payment gateway called Servired installed, the issue is that if they payment is failed the customer is redirect to cart page currently, i would like woocomerce redirect to a page as http://www.mydomain.com/payment-error.
What i have now in the php code is the next:
'Ds_Merchant_UrlKO' => $order->get_cancel_order_url(),
What i should made?