diff --git a/examples/get-rates-to-show-customer.php b/examples/get-rates-to-show-customer.php index a8751da..b239c1e 100644 --- a/examples/get-rates-to-show-customer.php +++ b/examples/get-rates-to-show-customer.php @@ -80,12 +80,12 @@ array( 'address_from'=> $from_address, 'address_to'=> $to_address, - 'parcels'=> array($parcel), + 'parcel'=> $parcel, 'async'=> false, )); // Rates are stored in the `rates` array inside the shipment object -$rates = $shipment['rates']; +$rates = $shipment['rates_list']; // You can now show those rates to the user in your UI. // Most likely you want to show some of the following fields: