$user_id
$user_id
Functions for doing shipping calculations.
usps_intlratev2(array $services, integer $pounds, integer $ounces, float $value, string $country, integer $width, integer $height, integer $length) : array
Retreives the international shipping estimate from the USPS Web Tools API
| array | $services | The services ids (integers) to get retreive prices. |
| integer | $pounds | The pounds of the package. |
| integer | $ounces | The ounces of the package. |
| float | $value | The valued price of the package contents. |
| string | $country | The destination country. |
| integer | $width | The width of the package. |
| integer | $height | The height of the package. |
| integer | $length | The length of the package. |
usps_ratev4(array $services, integer $pounds, integer $ounces, integer $zip, integer $width, integer $height, integer $length) : array
Retreives the domestic shipping estimate from the USPS Web Tools API
| array | $services |
|
| integer | $pounds | The pounds of the package. |
| integer | $ounces | The ounces of the package. |
| integer | $zip | The destination zip. |
| integer | $width | The width of the package. |
| integer | $height | The height of the package. |
| integer | $length | The length of the package. |