hi
i want to implement a custom adaptive payment plugin .
i can get order fields related to the vendor such order_vendor_price in the onBeforeOrderCreate(&$order, &$do) as below:
if (parent::onBeforeOrderCreate($order, $do) === true) {
$order_vendor_price= $order->order_vendor_price;
return true;
}
but when i want to take it in the onAfterOrderConfirm(&$order, &$methods, $method_id) , i do not get a result.
how can i reach to the order_vendor_price and other vendor related fields in the onAfterOrderConfirm(&$order, &$methods, $method_id) other than querying?
thanks