<div id="myDiv">
<input type="radio" name="payment" value="ACC">
<input type="radio" name="payment" value="VSA">
<input type="radio" name="payment" value="skrill">
</div>
<script>
function payment(e) {
var e = e || event;
var target = event.target || event.srcElement;
var value = target.value;
switch (value) {
case 'ACC': {alert('код ' + value); break}
case 'VSA': {alert('код ' + value); break}
case 'skrill': {alert('код ' + value)}
}
}
myDiv.onclick = payment;
</script>