Payment credit_allowed deducts from offsets

fixes #4403
Fixes #4407