Passing line items via ActiveMerchant

I am using the ActiveMerchant gem for Rails, and would like to pass the line items along. I can't seem to figure out the fields I need to pass in. Order_id and customer (customer id) come through. I have tried several different keys instead of items: but can't figure out the right one. ActiveMerchant uses the Moneris Gateway, and is supposed to pass through whatever you put into the options hash.


options = {
  order_id: order_id,
  customer: "#{business_name} (#{account})",
  items: invoice_json.map { |key, value| {product_code: "1", name: key, extended_amount: value, quantity: "1"}}
}
Thanks.