updated due_invoice method in post.rb to fix Pay button display issue