Skip to content

Instantly share code, notes, and snippets.

@magevision
Last active October 10, 2022 11:41
Show Gist options
  • Save magevision/6704bfbc4e2080396c7ffe554125df6a to your computer and use it in GitHub Desktop.
Save magevision/6704bfbc4e2080396c7ffe554125df6a to your computer and use it in GitHub Desktop.
CreateAPaymentMethodOnlyVisibleInAdmin
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<payment>
<admin_only>
<active>1</active>
<title>Admin Payment Only</title>
<order_status>pending</order_status>
<allowspecific>0</allowspecific>
<can_use_internal>1</can_use_internal>
<can_use_checkout>0</can_use_checkout>
<is_offline>1</is_offline>
<model>MageVision\Blog78\Model\AdminOnly</model>
<group>offline</group>
</admin_only>
</payment>
</default>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment