'http://production.shippingapis.com/ShippingAPI.dll', //test and production in one location /* * This API returns the current USPS postage corresponding to the parameters given such as * destination, weight of package, class of mail service, and so on. */ 'US_API' => 'RateV4', 'NOT_US_API' => 'IntlRateV2', /* * This attribute specifies your Web Tools ID. See the Developer's Guide for information on obtaining your USERID. */ 'userId' => '770TEST02283', // This attribute specifies your Web Tools ID. 'packageWeightLimit' => 70, // Valid values: 0 - 70 /* Services * * FIRST CLASS - First Class Mail, * FIRST CLASS COMMERCIAL - First Class Commercial Mail, * FIRST CLASS HFP COMMERCIAL - First Class HFP Commercial Mail, * PRIORITY - Priority Mail, * PRIORITY COMMERCIAL - Priority Commercial Mail, * PRIORITY HFP COMMERCIAL - Priority HFP Commercial Mail, * EXPRESS - Express Mail, * EXPRESS COMMERCIAL - Express Commercial Mail, * EXPRESS SH - Express SH Mail, * EXPRESS SH COMMERCIAL - Express SH Commercial Mail, * EXPRESS HFP - Express HFP Mail, * EXPRESS HFP COMMERCIAL - Express HFP Commercial Mail, * PARCEL - Parcel Mail, * MEDIA - Media Mail, * LIBRARY - Library Mail, * ALL - All Mail, * ONLINE - Online Mail */ 'serviceCodes' => array( 'EXPRESS' => 'Express Mail®', 'PRIORITY' => 'Priority Mail®', 'MEDIA' => 'Media Mail®', 'LIBRARY' => 'Library Mail®' ), /* First Class Mail Type * * LETTER - Letter, * FLAT - Flat, * PARCEL - Parcel */ 'firstClassMailType' => '', /* Containers * * VARIABLE - Variable * FLAT RATE BOX - Flat-Rate Box * FLAT RATE ENVELOPE - Flat-Rate Envelope * RECTANGULAR - Rectangular * NONRECTANGULAR - Non-rectangular */ 'container' => 'VARIABLE', /* Size * * REGULAR - Regular, * LARGE - Large, * OVERSIZE - Oversize */ 'size' => 'REGULAR', /** Machinable */ 'machinable' => true, // true - Yes, false - No /** DeliveryConfirmationTypes */ 'deliveryConfirmationTypes' => false, //true - Not Required, false - Required /* * Http Client options */ 'httpOptions' => array( 'maxredirects' => 0, 'timeout' => 30 ), /* * Default Package size */ 'defaultWidth' => '10', 'defaultLength' => '10', 'defaultHeight' => '10', 'defaultGirth' => '10', /* * Default countries (shipper and shipTo) */ 'defaultShipperCountry' => 'US', 'defaultShipToCountry' => 'US', /* * Mail Types * * available: * * All * Package * Postcards or aerogrammes * Envelope * LargeEnvelope * FlatRate */ 'mailType' => 'Package', /* USPS allowed Countries * * array values pass to USPS */ 'countries' => array ( 'AD' => 'Andorra', 'AE' => 'United Arab Emirates', 'AF' => 'Afghanistan', 'AG' => 'Antigua and Barbuda', 'AI' => 'Anguilla', 'AL' => 'Albania', 'AM' => 'Armenia', 'AN' => 'Netherlands Antilles', 'AO' => 'Angola', 'AR' => 'Argentina', 'AT' => 'Austria', 'AU' => 'Australia', 'AW' => 'Aruba', 'AX' => 'Aland Island (Finland)', 'AZ' => 'Azerbaijan', 'BA' => 'Bosnia-Herzegovina', 'BB' => 'Barbados', 'BD' => 'Bangladesh', 'BE' => 'Belgium', 'BF' => 'Burkina Faso', 'BG' => 'Bulgaria', 'BH' => 'Bahrain', 'BI' => 'Burundi', 'BJ' => 'Benin', 'BM' => 'Bermuda', 'BN' => 'Brunei Darussalam', 'BO' => 'Bolivia', 'BR' => 'Brazil', 'BS' => 'Bahamas', 'BT' => 'Bhutan', 'BW' => 'Botswana', 'BY' => 'Belarus', 'BZ' => 'Belize', 'CA' => 'Canada', 'CC' => 'Cocos Island (Australia)', 'CD' => 'Congo, Democratic Republic of the', 'CF' => 'Central African Republic', 'CG' => 'Congo, Republic of the', 'CH' => 'Switzerland', 'CI' => 'Cote d Ivoire (Ivory Coast)', 'CK' => 'Cook Islands (New Zealand)', 'CL' => 'Chile', 'CM' => 'Cameroon', 'CN' => 'China', 'CO' => 'Colombia', 'CR' => 'Costa Rica', 'CU' => 'Cuba', 'CV' => 'Cape Verde', 'CX' => 'Christmas Island (Australia)', 'CY' => 'Cyprus', 'CZ' => 'Czech Republic', 'DE' => 'Germany', 'DJ' => 'Djibouti', 'DK' => 'Denmark', 'DM' => 'Dominica', 'DO' => 'Dominican Republic', 'DZ' => 'Algeria', 'EC' => 'Ecuador', 'EE' => 'Estonia', 'EG' => 'Egypt', 'ER' => 'Eritrea', 'ES' => 'Spain', 'ET' => 'Ethiopia', 'FI' => 'Finland', 'FJ' => 'Fiji', 'FK' => 'Falkland Islands', 'FM' => 'Micronesia, Federated States of', 'FO' => 'Faroe Islands', 'FR' => 'France', 'GA' => 'Gabon', 'GB' => 'Great Britain and Northern Ireland', 'GD' => 'Grenada', 'GE' => 'Georgia, Republic of', 'GF' => 'French Guiana', 'GH' => 'Ghana', 'GI' => 'Gibraltar', 'GL' => 'Greenland', 'GM' => 'Gambia', 'GN' => 'Guinea', 'GP' => 'Guadeloupe', 'GQ' => 'Equatorial Guinea', 'GR' => 'Greece', 'GS' => 'South Georgia (Falkland Islands)', 'GT' => 'Guatemala', 'GW' => 'Guinea-Bissau', 'GY' => 'Guyana', 'HK' => 'Hong Kong', 'HN' => 'Honduras', 'HR' => 'Croatia', 'HT' => 'Haiti', 'HU' => 'Hungary', 'ID' => 'Indonesia', 'IE' => 'Ireland', 'IL' => 'Israel', 'IN' => 'India', 'IQ' => 'Iraq', 'IR' => 'Iran', 'IS' => 'Iceland', 'IT' => 'Italy', 'JM' => 'Jamaica', 'JO' => 'Jordan', 'JP' => 'Japan', 'KE' => 'Kenya', 'KG' => 'Kyrgyzstan', 'KH' => 'Cambodia', 'KI' => 'Kiribati', 'KM' => 'Comoros', 'KN' => 'Saint Kitts (St. Christopher and Nevis)', 'KP' => 'North Korea (Korea, Democratic People\'s Republic of)', 'KR' => 'South Korea (Korea, Republic of)', 'KW' => 'Kuwait', 'KY' => 'Cayman Islands', 'KZ' => 'Kazakhstan', 'LA' => 'Laos', 'LB' => 'Lebanon', 'LC' => 'Saint Lucia', 'LI' => 'Liechtenstein', 'LK' => 'Sri Lanka', 'LR' => 'Liberia', 'LS' => 'Lesotho', 'LT' => 'Lithuania', 'LU' => 'Luxembourg', 'LV' => 'Latvia', 'LY' => 'Libya', 'MA' => 'Morocco', 'MC' => 'Monaco (France)', 'MD' => 'Moldova', 'MG' => 'Madagascar', 'MK' => 'Macedonia, Republic of', 'ML' => 'Mali', 'MM' => 'Burma', 'MN' => 'Mongolia', 'MO' => 'Macao', 'MQ' => 'Martinique', 'MR' => 'Mauritania', 'MS' => 'Montserrat', 'MT' => 'Malta', 'MU' => 'Mauritius', 'MV' => 'Maldives', 'MW' => 'Malawi', 'MX' => 'Mexico', 'MY' => 'Malaysia', 'MZ' => 'Mozambique', 'NA' => 'Namibia', 'NC' => 'New Caledonia', 'NE' => 'Niger', 'NG' => 'Nigeria', 'NI' => 'Nicaragua', 'NL' => 'Netherlands', 'NO' => 'Norway', 'NP' => 'Nepal', 'NR' => 'Nauru', 'NZ' => 'New Zealand', 'OM' => 'Oman', 'PA' => 'Panama', 'PE' => 'Peru', 'PF' => 'French Polynesia', 'PG' => 'Papua New Guinea', 'PH' => 'Philippines', 'PK' => 'Pakistan', 'PL' => 'Poland', 'PM' => 'Saint Pierre and Miquelon', 'PN' => 'Pitcairn Island', 'PT' => 'Portugal', 'PY' => 'Paraguay', 'QA' => 'Qatar', 'RE' => 'Reunion', 'RO' => 'Romania', 'RS' => 'Serbia', 'RU' => 'Russia', 'RW' => 'Rwanda', 'SA' => 'Saudi Arabia', 'SB' => 'Solomon Islands', 'SC' => 'Seychelles', 'SD' => 'Sudan', 'SE' => 'Sweden', 'SG' => 'Singapore', 'SH' => 'Saint Helena', 'SI' => 'Slovenia', 'SK' => 'Slovak Republic', 'SL' => 'Sierra Leone', 'SM' => 'San Marino', 'SN' => 'Senegal', 'SO' => 'Somalia', 'SR' => 'Suriname', 'ST' => 'Sao Tome and Principe', 'SV' => 'El Salvador', 'SY' => 'Syrian Arab Republic', 'SZ' => 'Swaziland', 'TC' => 'Turks and Caicos Islands', 'TD' => 'Chad', 'TG' => 'Togo', 'TH' => 'Thailand', 'TJ' => 'Tajikistan', 'TK' => 'Tokelau (Union) Group (Western Samoa)', 'TL' => 'East Timor (Indonesia)', 'TM' => 'Turkmenistan', 'TN' => 'Tunisia', 'TO' => 'Tonga', 'TR' => 'Turkey', 'TT' => 'Trinidad and Tobago', 'TV' => 'Tuvalu', 'TW' => 'Taiwan', 'TZ' => 'Tanzania', 'UA' => 'Ukraine', 'UG' => 'Uganda', 'UY' => 'Uruguay', 'UZ' => 'Uzbekistan', 'VA' => 'Vatican City', 'VC' => 'Saint Vincent and the Grenadines', 'VE' => 'Venezuela', 'VG' => 'British Virgin Islands', 'VN' => 'Vietnam', 'VU' => 'Vanuatu', 'WF' => 'Wallis and Futuna Islands', 'WS' => 'Western Samoa', 'YE' => 'Yemen', 'YT' => 'Mayotte (France)', 'ZA' => 'South Africa', 'ZM' => 'Zambia', 'ZW' => 'Zimbabwe', 'US' => 'United States', ) );