Few method changes

Changes to getPaymentInfo and getPreference method ;
Changed get() to getAllPreferences().