Adobe Commerce customers depending on FedEx shipping services need to prepare for a significant change. Adobe Commerce customers will be unable to use the current FedEx shipping method integration from May 15, 2024, and Adobe is releasing the hotfix, which allows Adobe Commerce 2.4.4+ customers to access the most recent FedEx REST APIs rather than the deprecated SOAP APIs.
In this blog, we’re going to explore more on Magento 2.4.6: Patch for migration FedEx shipping method integration from SOAP to RESTful API.
Key Dates to Note:
Since August 31, 2024, developers can no longer use the FedEx Web Services Tracking, Address Validation, and Validate Postal Codes. This is because SOAP-based FedEx Web Services is now in development containment and has been replaced with FedEx RESTful APIs.
Magento provides a patch for this migration here: FedEx shipping method integration migration from SOAP to RESTful API
ON THIS PAGE
Error in Applying the Patch for Magento 2.4.6
Magento 2.4.6 encountered errors when applying the patch.
Below are the two additional patches to resolve these issues and ensure smooth integration of the RESTful API for FedEx services on Magento 2.4.6.
For versions 2.4.6
Patch 1`
Important: You should apply the patches in the correct order. fedexUrl.patch needs to be applied first, followed by FedexPatch-Composer-246develop.patch. |
Steps to Apply the Patched (Magento Open Source)
Follow these steps to apply the patches for Magento Open Source users:
Step 1: Create a Patch Folder
First, create a folder in your Magento root directory to store the patches. For example: magento2/patch/patch_name.patch.
Step 2: Upload the patch
Copy the downloaded patch files into the newly created folder.
Step 3: Run the Patch Command
Use the SSH command to apply the patch. Navigate to the Magento root directory and run the following command:
patch -p1 < %patch_name%.patch
Step 4: Refresh the cache
After applying the patch, refresh your cache in the Magento Admin panel under System > Cache Management.
Step 5: Verify the Changes
Once the cache has been refreshed, you can verify that the patch was applied correctly by navigating to Admin > Store > Configuration > Sales > Delivery Methods > FedEx. You should now see the option for the RESTful API under “Web Service Type.”
How to Apply a Composer Patch for Adobe Commerce on the Cloud
For Adobe Commerce Cloud customers, the process to apply the patch involves Composer:
Step 1: Create a folder for the patch
In your project root directory, create a folder named m2-hotfixes.
Step 2: Copy the patch files
Copy the patch files (%patch_name%.patch) into the m2-hotfixes folder.
Step 3: Commit and Push the Changes
After copying the patch files, add, commit, and push your changes using Git.
Step 4: Verify the Patch Application
Once the patch has been applied successfully, you should see the REST API option for FedEx integration under the Web Service Type in the FedEx shipping settings in your Magento Admin panel.
Preparing for the Migration
Ensure the patches are tested in a staging environment to identify and resolve any potential issues before applying them to your production site. Failure to migrate by the key dates mentioned above will result in disruptions to your shipping services, leading to potential delays in order fulfillment and a poor customer experience.
After the patch is applied successfully, we can see the REST API option in the web service type. Please check the screenshot below.
Magento 2.4.6: FedEx Shipping Integration Migration Patch with Klizer
By applying the necessary patches and migrating to the FedEx RESTful API, you can ensure your shipping services remain uninterrupted and benefit from the improved performance and security of the new API.
If you need assistance with the patch, contact Klizer and our experts will be happy to help.