@lxtopxm, примерно так
if ( $user = $db->fetch( "SELECT userid FROM users WHERE useraccount = ?", [ $invoice[1] ] ) )
{
$db->prepareAndExecute( "UPDATE usersettings SET balance = balance + ? WHERE userid = ?", [ $response['amount']['value'], $user['userid'] ] );
}