fixing bug: to get last payment order by created_at instead of payment_date as its a string