{"id":854,"date":"2020-02-17T11:05:26","date_gmt":"2020-02-17T11:05:26","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2020\/02\/17\/install-region-patch-for-paypal-express-checkout-issue-in-magento-2-3-4\/"},"modified":"2025-05-22T14:57:54","modified_gmt":"2025-05-22T09:27:54","slug":"install-region-patch-for-paypal-express-checkout-issue-in-magento-2-3-4","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/install-region-patch-for-paypal-express-checkout-issue-in-magento-2-3-4\/","title":{"rendered":"2 Ways To Install Region Patch For PayPal Express Checkout Issue in Magento 2.3.4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Magento CMS is a widely used E-commerce platform with constant improvements and bug fixes. And, to fix the issues, patch files and updated versions of Magento 2 are released with time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of the issues is&nbsp;<a href=\"https:\/\/github.com\/magento\/magento2\/issues\/26698\" target=\"_blank\" rel=\"noreferrer noopener\">PayPal Express Checkout issue with region patch for Magento 2.3.4<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a user selected the PayPal express checkout and entered a country name manually instead of drop-down option for the shipping address, an error is displayed that says,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u201cError 500: NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function getId() on null in httpdocs\/vendor\/magento\/module-paypal\/Model\/Api\/Nvp.php:1527\u201d<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To fix this issue, Magento&nbsp;<a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/installation-guide\/overview#download2353\" target=\"_blank\" rel=\"noreferrer noopener\">released<\/a>&nbsp;a region patch on February 12, 2020. In this post, I\u2019ve come up with two methods to&nbsp;<em><strong>install region patch for PayPal express checkout issue in Magento 2.3.4<\/strong><\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use any of the below methods, with or without SSH, to install the region patch. Checkout issues can\u2019t wait as it affects the conversion! So, don\u2019t wait anymore and install this patch at once with any of the below methods:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methods to install region patch for PayPal express checkout issue in Magento 2.3.4:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>With SSH<\/li>\n\n\n\n<li>Without SSH<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Each method in detail:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"withSSH\">Method 1: Install Region Patch for PayPal express checkout issue in Magento 2.3.4 with SSH<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Contact your hosting provider for help with setting up SSH.<br>Download&nbsp;<strong>region patch files for paypal express checkout issue for Magento 2.3.4<\/strong>&nbsp;version from&nbsp;<a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-operations\/installation-guide\/overview#download2353\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>here<\/strong><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Upload the patch into your Magento root directory and run the appropriate SSH command:<br><strong>For .sh file extension:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sh patch_file_name.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sh PayPal_Express_Checkout_issue_fix_2.3.4_github-2020-02-13-12-36-34.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For .patch file extension:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">patch \u2014p0 &lt; patch_file_name.patch<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For Linux OS or Ubuntu derived machines:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Linux OS or Ubuntu derived machines, using&nbsp;<strong>sh<\/strong>&nbsp;will throw an error as&nbsp;<strong>sh<\/strong>&nbsp;is supposed to be used only with purely POSIX compliant scripts and Magento scripts are not 100%&nbsp;POSIX compliant. Instead, on Ubuntu and derived OSes such as Linux Mint, you should use<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash patch.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong>&nbsp;Once executed the command, refresh the cache in the Admin under \u201c<strong>System &gt; Cache Management<\/strong>\u201d so that the changes can be reflected. We strongly recommend that you test all patches in a test environment before taking them live.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"withoutSSH\">Method 2: Install Region Patch for PayPal express checkout issue in Magento 2.3.4 without SSH<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Download the&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/PrePatchedFiles\/Patch-2353.zip\" target=\"_blank\" rel=\"noreferrer noopener\">zip file<\/a>&nbsp;for&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-2-3-4-release\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2.3.4<\/a>&nbsp;version. You can also download these&nbsp;<a href=\"https:\/\/github.com\/MeetanshiInc\/Magento-Security-Patches-PrePatched-Files\/tree\/master\/Region-Patch-for-PayPal\/Patch-2353\/\" target=\"_blank\" rel=\"noreferrer noopener\">PrePatched files from Github<\/a>&nbsp;or download it from our post on&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/download-magento\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download Magento 2<\/a>. Once you download these files, just upload it to your Magento root folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Flush and clean the cache once uploaded.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please share the solution with Magento 2.3.4 store merchants to solve their PayPal express checkout issue via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento CMS is a widely used E-commerce platform with constant improvements and bug fixes. And, to fix the issues, patch files and updated versions of&#8230;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-854","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=854"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/854\/revisions"}],"predecessor-version":[{"id":15080,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/854\/revisions\/15080"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}