Win or lose
When you click the attack button you either win, lose, get killed or kill the opponent. When you win or get the kill you get the open CREDIT and XP points. You always get a bit of damage yourself.
When you get killed you lose all your open CREDITS as well.
You can see all details in the detail slideout.