In order to use UPS, you'll need to ensure you are using a valid United States address as your store location. You'll also need to ensure your Craft Commerce default currency is set to USD.
Register for an access key via the UPS Developer Kit form. Add this access key in the provider information either through the control panel, or in the configuration file (as the API Key).
The below service are available with UPS for domestic and international customer destination addresses.
Add the following code to your configuration file under the
providers array, as per the below. Note that to disable certain services, simply omit them from the
'providers' => [ 'ups' => [ 'name' => 'USPS', 'settings' => [ 'apiKey' => 'xxxxxxxxxxxxxxxxxxxxx', 'testApiKey' => 'xxxxxxxxxxxxxxxxxxxxx', 'username' => 'xxxxxxxxxxxxx', 'password' => 'xxxxxxxxxxxxx$', ], 'services' => [ 'S_AIR_1DAYEARLYAM' => 'UPS Next Day Air Early AM', 'S_AIR_1DAY' => 'UPS Next Day Air', 'S_GROUND' => 'UPS Ground', 'S_STANDARD' => 'UPS Standard', ], ], ]
Available for Craft 3. Get it from the plugin store.