Updated payment request constructor to support line items as arrays.