Currently I have implemented a custom IPaymentProcessorProvider and I need to pass the orders line items to our ERP system so I can have the order filled through that. I currently can get at all the customer/billing/shipping information in the
private IPaymentResponse ProcessSale(IPaymentRequest data)
Method inside the Process Sale's method but I am unsure how I can go about getting at the order's "product" details that they selected to purchase and the quantity's.
Can anyone point me in the right direction as to how one could do this.
Ok I realized I can hook the event when the site is boot strapped for..
EcommerceEvents.OrderPlaced += EcommerceEvents_OrderPlaced;
// get order manager
var ordersManager = OrdersManager.GetManager();
// get our order by ID
var order = ordersManager.GetOrder(id);
Figured it out thanks for AWESOME DOCUMENTATION!!