Your X-Payments version?
What payment gateway do you use?
What is the status of the refunded transactions in your payment processor account? Quite often refunds are not issued immediately. E.g. our payment processor 2Checkout sends refund during 7-10 business days after we click "Cancel" button. It can be a case here, too.