fix mapping to mongodb of payment details