schrammel-codes/magento2-epc-qr-code
Composer 安装命令:
composer require schrammel-codes/magento2-epc-qr-code
包简介
This modules enables merchants to provide an EPC QR code for banktransfer payments to customers
README 文档
README
Enables merchants to provide an EPC QR code for banktransfer payments to customers.
Table of contents
- 📝 Summary
- ℹ️ Background
- 👨🏼🔧 Installation
- 🛠️ Configuration
- 🗓️ Usage
- ⛙ Contribution
- ⬆️ Upgrade
- ⚖️ License
📝 Summary
To ease payments for customers, merchants can provide an EPC QR code for banktransfer payments.
This module adds new configurations to the Banktransfer payment method, which generates an EPC QR code for the
customer to scan with their banking app.
ℹ️ Background
EPC QR codes (PDF)
are a standardized way to provide payment information to customers. The generated QR code contains all the information
needed to make a banktransfer payment, such as the beneficiary, IBAN, the transaction amount and the reference.
The customers simply can scan the QR code with their banking app to initiate the payment.
👨🏼🔧 Installation
composer require schrammel-codes/magento2-epc-qr-code
bin/magento module:enable SchrammelCodes_EpcQrCode
bin/magento setup:upgrade
🛠️ Configuration
This module adds additional configurations to the Banktransfer payment method in
Stores > Configuration > Sales > Payment Methods > Bank Transfer Payment.
Render QR code as Base64 encoded value has to be used with caution. It is recommended to use this option only, if it's
that your customers don't get a QR code rendered in Gmail clients, as the most widely used email client not supporting
base64 encoded images as image source.
When using colors for your QR code, make sure it is easy to scan. Some color combinations might make it hard to impossible for the banking apps to process the QR code.
🗓️ Usage
As soon as the module is enabled and configured with correct information, the QR code will be rendered below the banktransfer payment instructions in every place they are rendered.
Please observe, that the above shown QR code is an example and does not contain a valid IBAN which results in an error scanning this code with a banking app. With correct configuration, the QR code will work as intended.
Further, the module offers a view model \SchrammelCodes\EpcQrCode\ViewModel\QrCode with following methods that can be
used to render the QR code image tag in the frontend:
renderQrCodeImageTagFromOrderIncrementId(string $orderIncrementId): ?stringrenderQrCodeImageTagFromOrder(\Magento\Sales\Api\Data\OrderInterface $order): ?string
If the prerequisites to render the QR code are not met, the methods will return null.
⬆️ Upgrade
Migration path from 1.x to 2.1 onwards
As 2.0.0 introduced a breaking change by introducing a hash check on public EPC QR code URLs to avoid order probing, 2.1.0 introduces
an upgrade timestamp flag, automatically bypassing the has validation on orders that got placed prior to that date but keeping the check
mandatory on newer orders.
If you've been on version 1.x before already, make sure to directly upgrade to a version >= 2.1.0 to ensure your customers don't see broken QR code images in their older order confirmation emails.
⛙ Contribution
Contributions are welcome! If you have any suggestions, feature requests or issues, please create a new issue or submit a pull request.
⚖️ License
MIT Copyright (c) 2024-2025 Dipl.-Ing. Andreas Schrammel, BSc.
schrammel-codes/magento2-epc-qr-code 适用场景与选型建议
schrammel-codes/magento2-epc-qr-code 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.18k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2024 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 schrammel-codes/magento2-epc-qr-code 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 schrammel-codes/magento2-epc-qr-code 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-03

