Open RaphaelBriskie opened 3 years ago
Additional to this, the variable $serviceId should not be used here, it should be the method id:
$rates[] = new ShippingRate(
[
'shipping_method_id' => $shipment->getShippingMethodId(),
'service' => $service,
'amount' => $postagePrice,
]
);
Actually, $shipment->getShippingMethodId() is no longer working; however $this->parentEntity->id() does.
The ShippingRate object requires an array when it is created.
src/Plugin/Commerce/ShippingMethod/AusPost.php - Line 494, function calculateRates()
Should be: