In order to use FedEx, 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.
To use Fedex API, you'll need to:
After this, you should receive an email with the following information, that is required by Postie:
The below service are available with FedEx 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' => [ 'fedEx' => [ 'name' => 'FedEx', 'settings' => [ 'accountNumber' => 'xxxxxxxxxxxxx', 'meterNumber' => 'xxxxxxxxxxxxx', 'key' => 'xxxxxxxxxxxxxxxxxxxxx', 'password' => 'xxxxxxxxxxxxxxxxxxxxx', 'useTestEndpoint' => true, ], 'services' => [ 'FEDEX_EXPRESS_SAVER' => 'Express Saver', 'FEDEX_GROUND' => 'Ground', 'INTERNATIONAL_ECONOMY' => 'International Economy', 'INTERNATIONAL_PRIORITY' => 'International Priority', ], ], ]
Available for Craft 3. Get it from the plugin store.