Search by

blueprint3d / module-admin-payment

stu583

Adds an 'Admin Payment' method that can only be selected when placing or editing an order from the Magento 2 admin panel, with an optional free-text transaction/receipt reference for accounting.

Package info

github.com/BluePrint3D-Dev/module-admin-payment

Documentation

Language:HTML

Type:magento2-module

pkg:composer/blueprint3d/module-admin-payment

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-09-12 14:31 UTC

This package is auto-updated.

Last update: 2026-09-12 14:50:53 UTC


README

Magento Version PHP Version License

A Magento 2 module that adds a payment method which only ever appears when an admin is placing or editing an order in the backend — it never shows up on the storefront, in the REST checkout API, or in GraphQL.

🛑 The Problem

Sometimes store staff need to record an order as paid by a method that only makes sense internally — a bank transfer confirmed by phone, a card payment taken over the phone, a manual reconciliation — without exposing anything resembling it as a choice to customers at checkout. Repurposing a core payment method like Purchase Order for this risks confusing anyone genuinely using that method, and there's no built-in "admin only" payment option in Magento.

🛠️ The Solution

This module adds its own Admin Payment method, built on Magento's native canUseCheckout / canUseInternal distinction:

  • It reports itself as unavailable for storefront checkout, the REST checkout API, and GraphQL.
  • It remains fully selectable when an admin creates or edits an order in Sales > Orders.
  • It doesn't touch or override any core payment method — existing methods like Purchase Order keep working exactly as before.

✨ Features

  • Admin-Only by Design: Uses Magento's own payment method flags rather than hiding a method with a plugin.
  • Optional Reference Field: A free-text "Transaction / Receipt Reference" field for accounting purposes — not required, not validated.
  • Visible on the Order: The reference (if entered) is shown in the Payment Information panel on both the admin order view and the customer's order view.
  • Zero Interference: Doesn't modify or plugin any core Magento payment method.

📦 Installation

1. Install via Composer

composer require blueprint3d/module-admin-payment

2. Enable the module

php bin/magento module:enable BluePrint3D_AdminPayment

3. Run setup upgrade

php bin/magento setup:upgrade

4. Compile and flush cache

php bin/magento setup:di:compile
php bin/magento cache:flush

👨‍💻 Usage

Enable Admin Payment under Stores > Configuration > Sales > Payment Methods. When creating or editing an order from the admin panel, select Admin Payment and optionally enter a reference. It will never appear as an option on the storefront.

📜 License

Copyright © 2026 BluePrint3D Ltd. All rights reserved.

This software is provided free of charge for personal or commercial use. However, the resale, redistribution, or sublicensing of this source code, modified or unmodified, for direct financial gain is strictly prohibited.

Please see the LICENSE.txt file for full terms and conditions.

Owned by: BluePrint3D Ltd (Company Registration Number: 13473806)
Email: support@blueprint3d.dev