diff --git a/src/Adapter/AbstractAdapter.php b/src/Adapter/AbstractAdapter.php index 9081b07..7a0f62d 100644 --- a/src/Adapter/AbstractAdapter.php +++ b/src/Adapter/AbstractAdapter.php @@ -54,9 +54,10 @@ abstract class AbstractAdapter implements AdapterInterface /** * Send transaction * + * @param boolean $verifyPeer * @return void */ - abstract public function send(); + abstract public function send($verifyPeer = true); /** * Return whether the transaction is a success diff --git a/src/Adapter/Ups.php b/src/Adapter/Ups.php index c6fa72d..dc17b78 100644 --- a/src/Adapter/Ups.php +++ b/src/Adapter/Ups.php @@ -328,7 +328,7 @@ public function shipFrom(array $shipFrom) public function setDimensions(array $dimensions, $unit = null) { if ((null !== $unit) && (($unit == 'IN') || ($unit == 'CM'))) { - $this->dimensions['UnitOfMeasurement'] = $unit; + $this->weight['UnitOfMeasurement'] = $unit; } foreach ($dimensions as $key => $value) { diff --git a/src/Shipping.php b/src/Shipping.php index 63134a5..e021c6a 100644 --- a/src/Shipping.php +++ b/src/Shipping.php @@ -106,13 +106,14 @@ public function setWeight($weight, $unit = null) } /** - * Send transaction data + * Send transaction * + * @param boolean $verifyPeer * @return void */ - public function send() + public function send($verifyPeer = true) { - $this->adapter->send(); + $this->adapter->send($verifyPeer); } /**