Fix Rails 3 incompatibility errors with Api::PaymentsController + its test