I'm updating the update_payment_summary function in the Point_Of_Sale, this function is part of the PaymentScreenWidget. Now I'd like to retrieve the products from the orderlines.
I tried with
var order = this.pos.get('selectedOrder');
var orderlines = order.get('orderLines').models;
But when I print orderlines I get [object Object]
Any ideas how I can get the product object of every orderline?