Configure FedEx Shipping Integration in the Back-Office
This section is a part of the Shipping Configuration topic that provides a general understanding of the shipping concept in OroCommerce.
FedEx is the largest multinational delivery service company that provides a variety of shipping methods solutions, both ground and airfreight, day and overnight, to meet the customers’ requirements.
This section describes the steps that are necessary to expose FedEx as a shipping method in OroCommerce orders and quotes.
See a short demo on how to set up a shipping integration in OroCommerce or keep reading the step-by-step guidance below.
Prepare for Integration
Before adding FedEx as a shipping method in OroCommerce, you need to create a FedEx business account and obtain a dedicated shipping account number and a meter number via the official FedEx website.
Create a FedEx Business Account
To register a business account and enable a checkout shipping integration with OroCommerce, follow the next steps:
Navigate to the FedEx login page.
Click Sign In and then Create Account.
Click Business account benefits to check out the rewarded benefits for your business and proceed to a business account creation.
Click Open a business account to complete the registration in several steps.
Fill in the registration form with your personal contact information and a credit card number. Agree to the terms and conditions and check the benefits you can get at the final step.
Obtain a Set of Testing Credentials
Once the registration is complete, you can now obtain the necessary test keys to set up the integration between FedEx and OroCommerce and make sure the integration is working properly.
Navigate to the FedEx Web Services page.
Complete the four steps required by FedEx to test the integration:
- Read the documentation.
- Request the testing credentials and test the integration.
- Certify the OroCommerce application with FedEx.
- Receive new production credentials to replace your current test ones and move to production.
Click Move to development and then Get your test key.
Confirm your contact information and accept the FedEx license to complete the registration process.
Receive an email with the corresponding test credentials:
- Account ID
- Meter Number
Configure a FedEx Integration in OroCommerce
To enable the integration with FedEx in order to request the shipping cost estimation and/or request the shipping services:
Navigate System > Integrations > Manage Integrations in the main menu.
Click Create Integration.
On the Create Integration page, select FedEx for Type.
Type in the Common Integration Details:
- Name – the shipping method name that is shown as an option for shipping configuration in the OroCommerce back-office.
- Label – the shipping method name/label that is shown as a shipping option for the buyer in the OroCommerce storefront during the checkout.
Click the Translations icon to provide spelling for different languages. Click the Default Language icon to return to the single-language view.
Set the Test Mode check box into the necessary state. Enable it if you are using the test FedEx access key and disable for the production access.
For security reasons, it is critically important to use the mode that matches your environment and the FedEx access key type.
Never use the FedEx access key that is dedicated for the production environment in your sandbox/test OroCommerce environment.
Never enable Test Mode for the FedEx integration on your production instance of OroCommerce.
Provide the connection credentials which you have received from FedEx:
- User Credential Key - is the authentication key provided by FedEx and used for accessing your FedEx account.
- User Credential Password - is the production password provided by FedEx.
- Shipping Account Number - is the account ID provided by FedEx.
- Meter Number - is the meter number provided by FedEx.
Select the available pickup type that applies to the deliveries for the shipping methods via this integration:
- Regular Pickup - enables you to schedule a regular delivery pickup if you deal with a large volume of shipments.
- Request Courier - with this type selected, you can request a FedEx courier to come and pick up the shipments.
- Drop Box - requires you to deliver the shipments to your closest FedEx drop box.
- Business Service Center - requires you to deliver the shipments to your local FedEx business service center.
- Station - requires you to deliver the shipments to your local FedEx station.
Select a unit of weight to use for the shipping price calculation: a pound or kilogram.
The unit of weight should match the options supported by your FedEx account.
Select the FedEx shipping services that are supported in the OroCommerce shipping options. Hold the CTRL key to select/deselect multiple options.
Click Check FedEx Connection to ensure FedEx API is accessible.
Set the status to Active to enable the integration.
The Default Owner field is prepopulated with the user creating the integration. You can change this value to a different user, if necessary.
Click Save and Close.
Next, set up a shipping rule via the Shipping Rules Configuration page to enable this shipping method for all or some customer orders.
Once the shipping method is added to the shipping rule, provide the information that configures the shipping fee components and the method to calculate it following the Configure a Shipping Method in a Shipping Rule topic.
Obtain a Set of Production Credentials
Once you have successfully configured the OroCommerce FedEx integration, and the connection to the test environment is working properly, you can move to a production stage and request a new set of credentials.
Navigate to the FedEx Web Services page.
Click the Move to production link and then Get Production Key to load another registration form page.
Complete the form and accept the agreement to continue.
Receive an email with the corresponding production keys from FedEx.
Follow the steps described in the aforementioned Configure a FedEx Integration in OroCommerce section to set up the production integration between FedEx and OroCommerce.
Make sure that the Test Mode check box is NOT selected as you are configuring the production integration.