{"id":6931,"date":"2021-08-19T15:30:03","date_gmt":"2021-08-19T10:00:03","guid":{"rendered":"https:\/\/www.innovationm.com\/blog\/?p=6931"},"modified":"2021-08-19T15:37:58","modified_gmt":"2021-08-19T10:07:58","slug":"how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2","status":"publish","type":"post","link":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/","title":{"rendered":"How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Magento 2 can offer various types of payment methods, gateways, and payment services.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Payment methods: Payment methods are the number of ways by which merchants can collect payments from their customers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">By default, magento2 has 5 default payment methods.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Which are as follows:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Check\/money order<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Bank Transfer<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cash on delivery<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Purchase Order<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Zero Subtotal Checkout<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Magento also allows us to accept payment using third-party services such as <\/span><i><span style=\"font-weight: 400;\">PayPal and Authorize.net<\/span><\/i><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To enable and configure one of the basic payment methods, jump to<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Admin -&gt; Stores -&gt; Configuration -&gt; Sales -&gt; Payment Methods<\/span><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone  wp-image-6935\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/blog-1-300x118.png\" alt=\"\" width=\"516\" height=\"203\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/blog-1-300x118.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/blog-1-1024x403.png 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/blog-1-768x303.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/blog-1-624x246.png 624w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/blog-1.png 1277w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now let&#8217;s discuss what if we have a situation in which we need to disable a Check\/money order payment method at the front end only.<\/span><\/p>\n<p><b>You can show the <\/b><b>Check\/money order<\/b> <b>payment method in the admin area only and disable it in the frontend area.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Here, we will create a simple module to disable check\/money order payment method.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">First of all, we need to register our module with registration.php file<\/span><\/p>\n<p><b>Full path : app\/code\/Vinay\/DisablePayment\/registration.php<\/b><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\r\n\r\n\r\n\r\n\\Magento\\Framework\\Component\\ComponentRegistrar::register(\r\n\r\n\u00a0\u00a0\u00a0\u00a0\\Magento\\Framework\\Component\\ComponentRegistrar::MODULE,\r\n\r\n\u00a0\u00a0\u00a0\u00a0\"Vinay_DisablePayment\",\r\n\r\n\u00a0\u00a0\u00a0\u00a0__DIR__\r\n\r\n);\r\n\r\n\r\n\r\n\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><b style=\"font-size: 1rem;\">Create a module.xml file, Path: app\/code\/Vinay\/DisablePayment\/etc\/module.xml<\/b><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true\">&lt;?xml version=\"1.0\" ?&gt;\r\n\r\n\u00a0\u00a0\u00a0\u00a0&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Module\/etc\/module.xsd\"&gt;\r\n\r\n\u00a0\u00a0\u00a0\u00a0&lt;module name=\"Vinay_DisablePayment\" setup_version=\"1.0.0\"\/&gt;\r\n\r\n&lt;\/config&gt;<\/pre>\n<p><b>Now create the di.xml file for global scope,<\/b><\/p>\n<p><b>Path: app\/code\/Vinay\/DisablePayment\/etc\/di.xml<\/b><\/p>\n<pre class=\"lang:default decode:true\">&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:ObjectManager\/etc\/config.xsd\"&gt;\r\n\r\n\u00a0\u00a0\u00a0\u00a0&lt;type name=\"Magento\\OfflinePayments\\Model\\Checkmo\"&gt;\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;plugin sortOrder=\"1\" name=\"restrictByCustomer1\" type=\"Vinay\\DisablePayment\\Plugin\\Payment\\Method\\Checkmo\\Available\"\/&gt;\r\n\r\n\u00a0\u00a0\u00a0\u00a0&lt;\/type&gt;\r\n\r\n&lt;\/config&gt;<\/pre>\n<p><b>Now create Available.php file at a location.<\/b><\/p>\n<p><b>Path: app\/code\/Vinay\/DisablePayment\/Plugin\/Payment\/Method\/Checkmo\/Available.php<\/b><\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\r\n\r\n\r\n\r\nnamespace Vinay\\DisablePayment\\Plugin\\Payment\\Method\\Checkmo;\r\n\r\nuse Magento\\Customer\\Model\\Session as CustomerSession;\r\n\r\nuse Magento\\Backend\\Model\\Auth\\Session as BackendSession;\r\n\r\nuse Magento\\OfflinePayments\\Model\\Checkmo;\r\n\r\n\r\n\r\n\r\nclass Available\r\n\r\n{\r\n\r\n\r\n\r\n\r\n\u00a0\u00a0\u00a0\u00a0\/**\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @var CustomerSession\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0*\/\r\n\r\n\u00a0\u00a0\u00a0\u00a0protected $customerSession;\r\n\r\n\r\n\r\n\r\n\u00a0\u00a0\u00a0\u00a0\/**\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @var BackendSession\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0*\/\r\n\r\n\u00a0\u00a0\u00a0\u00a0protected $backendSession;\r\n\r\n\r\n\r\n\r\n\u00a0\u00a0\u00a0\u00a0\/**\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @param CustomerSession $customerSession\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @param BackendSession $backendSession\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0*\/\r\n\r\n\u00a0\u00a0\u00a0\u00a0public function __construct(\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CustomerSession $customerSession,\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0BackendSession $backendSession\r\n\r\n\u00a0\u00a0\u00a0\u00a0) {\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$this-&gt;customerSession = $customerSession;\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0$this-&gt;backendSession = $backendSession;\r\n\r\n\u00a0\u00a0\u00a0\u00a0}\r\n\r\n\r\n\r\n\r\n\u00a0\u00a0\u00a0\u00a0\/**\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0*\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @param Checkmo $subject\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @param $result\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @return bool\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0* @throws \\Magento\\Framework\\Exception\\LocalizedException\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0*\/\r\n\r\n\u00a0\u00a0\u00a0\u00a0public function afterIsAvailable(Checkmo $subject, $result)\r\n\r\n\u00a0\u00a0\u00a0\u00a0{\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ Do not remove payment method for admin\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if ($this-&gt;backendSession-&gt;isLoggedIn()) {\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return $result;\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} else {\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return false;\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\r\n\r\n\u00a0\u00a0\u00a0\u00a0}\r\n\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><b>Now run the command to enable module,<\/b><\/p>\n<p><b>php bin\/magento setup:upgrade<\/b><\/p>\n<p><b>When you check the frontend you cant see Check\/money order method.<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>At the backend, Check\/money order is enabled:<\/b><\/p>\n<p><img decoding=\"async\" class=\"alignnone  wp-image-6936\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-2-300x63.png\" alt=\"\" width=\"524\" height=\"110\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-2-300x63.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-2-1024x216.png 1024w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-2-768x162.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-2-624x132.png 624w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-2.png 1207w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/p>\n<p><b>At the frontend, the Check\/money order is disabled:<\/b><\/p>\n<p><img decoding=\"async\" class=\"alignnone  wp-image-6937\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-3-300x167.png\" alt=\"\" width=\"521\" height=\"290\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-3-300x167.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-3-768x428.png 768w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-3-624x348.png 624w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/Blog-3.png 846w\" sizes=\"(max-width: 521px) 100vw, 521px\" \/><\/p>\n<p><b>To disable any other payment method, we can use Magento\\Payment\\Model\\MethodList class and this class used getAvailableMethods() function to check available methods on frontend. We can disable any specific method by creating plugin for this class getAvailableMethods() method.<\/b><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 can offer various types of payment methods, gateways, and payment services. Payment methods: Payment methods are the number of ways by which merchants can collect payments from their customers. By default, magento2 has 5 default payment methods. Which are as follows: Check\/money order Bank Transfer Cash on delivery Purchase Order Zero Subtotal Checkout [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6932,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[681],"tags":[698],"class_list":["post-6931","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2","tag-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2? - InnovationM - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2? - InnovationM - Blog\" \/>\n<meta property=\"og:description\" content=\"Magento 2 can offer various types of payment methods, gateways, and payment services. Payment methods: Payment methods are the number of ways by which merchants can collect payments from their customers. By default, magento2 has 5 default payment methods. Which are as follows: Check\/money order Bank Transfer Cash on delivery Purchase Order Zero Subtotal Checkout [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/\" \/>\n<meta property=\"og:site_name\" content=\"InnovationM - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-19T10:00:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-19T10:07:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/magento-2-1024x576.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InnovationM Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InnovationM Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/\"},\"author\":{\"name\":\"InnovationM Admin\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"headline\":\"How to disable the Check\\\/money order payment method in frontend-only and enable it in backend in Magento2?\",\"datePublished\":\"2021-08-19T10:00:03+00:00\",\"dateModified\":\"2021-08-19T10:07:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/\"},\"wordCount\":335,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/magento-2.png\",\"keywords\":[\"Magento 2\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/\",\"name\":\"How to disable the Check\\\/money order payment method in frontend-only and enable it in backend in Magento2? - InnovationM - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/magento-2.png\",\"datePublished\":\"2021-08-19T10:00:03+00:00\",\"dateModified\":\"2021-08-19T10:07:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/magento-2.png\",\"contentUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/magento-2.png\",\"width\":3556,\"height\":2000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to disable the Check\\\/money order payment method in frontend-only and enable it in backend in Magento2?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\",\"name\":\"InnovationM - Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/a831bf4602d69d1fa452e3de0c8862ed\",\"name\":\"InnovationM Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g\",\"caption\":\"InnovationM Admin\"},\"sameAs\":[\"http:\\\/\\\/www.innovationm.com\\\/\"],\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/author\\\/innovationmadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2? - InnovationM - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/","og_locale":"en_US","og_type":"article","og_title":"How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2? - InnovationM - Blog","og_description":"Magento 2 can offer various types of payment methods, gateways, and payment services. Payment methods: Payment methods are the number of ways by which merchants can collect payments from their customers. By default, magento2 has 5 default payment methods. Which are as follows: Check\/money order Bank Transfer Cash on delivery Purchase Order Zero Subtotal Checkout [&hellip;]","og_url":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/","og_site_name":"InnovationM - Blog","article_published_time":"2021-08-19T10:00:03+00:00","article_modified_time":"2021-08-19T10:07:58+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/magento-2-1024x576.png","type":"image\/png"}],"author":"InnovationM Admin","twitter_misc":{"Written by":"InnovationM Admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#article","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/"},"author":{"name":"InnovationM Admin","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"headline":"How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2?","datePublished":"2021-08-19T10:00:03+00:00","dateModified":"2021-08-19T10:07:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/"},"wordCount":335,"commentCount":0,"image":{"@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/magento-2.png","keywords":["Magento 2"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/","url":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/","name":"How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2? - InnovationM - Blog","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#primaryimage"},"image":{"@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/magento-2.png","datePublished":"2021-08-19T10:00:03+00:00","dateModified":"2021-08-19T10:07:58+00:00","author":{"@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed"},"breadcrumb":{"@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#primaryimage","url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/magento-2.png","contentUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2021\/08\/magento-2.png","width":3556,"height":2000},{"@type":"BreadcrumbList","@id":"https:\/\/www.innovationm.com\/blog\/how-to-disable-the-check-money-order-payment-method-in-frontend-only-and-enable-it-in-backend-in-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.innovationm.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to disable the Check\/money order payment method in frontend-only and enable it in backend in Magento2?"}]},{"@type":"WebSite","@id":"https:\/\/www.innovationm.com\/blog\/#website","url":"https:\/\/www.innovationm.com\/blog\/","name":"InnovationM - Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.innovationm.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/a831bf4602d69d1fa452e3de0c8862ed","name":"InnovationM Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c99d9eece9dfbc82297cf34ddd58e9fe05bb52fe66c8f6bf6c0a45bfb6d7629?s=96&r=g","caption":"InnovationM Admin"},"sameAs":["http:\/\/www.innovationm.com\/"],"url":"https:\/\/www.innovationm.com\/blog\/author\/innovationmadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/6931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/comments?post=6931"}],"version-history":[{"count":0,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/6931\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media\/6932"}],"wp:attachment":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media?parent=6931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/categories?post=6931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/tags?post=6931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}