a). You can cancel the order before it is shipped. However the payment gateway and any other processing fees will be deducted from the refund amount.
b). Cancellation Post Dispatched: If order is cancelled post dispatch shipping charges (both ways) + Gateway charges (if any) will be deducted before refund.