fix for getPaymentMethods compatibility with PHP5.3
merge