This module adds an offline payment method named adminpayment, intended for use only in the Magento Admin Panel. The method is registered as a standard Magento payment method and includes its own checkout renderer, but its availability is restricted to the adminhtml area via the payment_method_is_active event observer.
For operations and customer support teams that create orders from the Admin Panel and need a dedicated payment method that is not available to customers on the storefront.
adminpayment payment method as offline (_isOffline = true) with the default order status set to pending and the title AdminPayment.adminpayment availability to the adminhtml area via the payment_method_is_active observer.adminpayment on the frontend (JS + template), even though the method is disabled there by default.Type: Composer
* = in production use the --keep-generated option
composer config repositories.module.admin.payment vcs https://github.com/kowalco/magento-2-admin-paymentcomposer config --global --auth github-oauth.github.com <YOUR_TOKEN>composer require kowal/module-adminpaymentphp bin/magento module:enable Kowal_AdminPaymentphp bin/magento setup:upgradephp bin/magento cache:flushdefault, website, store view (all fields have showInDefault/Website/Store = 1).payment/adminpayment/active, payment/adminpayment/title, payment/adminpayment/order_status, payment/adminpayment/allowspecific, payment/adminpayment/specificcountry, payment/adminpayment/sort_order, payment/adminpayment/instructions.Setup/* and no patches).cron jobs, queues (queue), or custom indexes.setup:upgrade and cache:flush as described in the README..gitlab-ci.yml with a single test stage and SAST enabled (no additional build/test steps).composer.json and etc/module.xml; the module assumes standard Magento modules used by configuration and checkout are present (including Magento_Payment, Magento_Checkout, Magento_Config, Magento_Sales, Magento_Directory, Magento_Store).acl.xml; configuration is placed in the standard payment section.payment_method_is_active observer disables adminpayment outside the adminhtml area.