In order to use FedEx, you'll need to ensure you are using a valid United States address as your origin. 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', 'markUpRate' => '<yourMarkUpRate>', 'markUpBase' => '<value>', 'settings' => [ 'accountNumber' => '<yourAccountNumber>', 'meterNumber' => '<yourMeterNumber>', 'key' => '<yourKey>', 'password' => '<yourPassword>', // Whether to use the test API endpoint (optional) 'useTestEndpoint' => false, ], 'services' => [ 'FEDEX_EXPRESS_SAVER' => 'Express Saver', 'FEDEX_GROUND' => 'Ground', 'INTERNATIONAL_ECONOMY' => 'International Economy', 'INTERNATIONAL_PRIORITY' => 'International Priority', 'PRIORITY_OVERNIGHT' => 'Priority Overnight', 'STANDARD_OVERNIGHT' => 'Standard Overnight', ], ], ]
Available for Craft 2 for $49, trial locally for as long as you need.