mahocommerce/module-przelewy24 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mahocommerce/module-przelewy24

Composer 安装命令:

composer require mahocommerce/module-przelewy24

包简介

Przelewy24 payment gateway integration for Maho

README 文档

README

Maho Commerce License PHP PHPStan Level

Przelewy24 payment gateway integration for Maho Commerce.

Accept payments through Przelewy24, one of Poland's most popular payment gateways.

Note: This module currently supports the gateway redirect flow only — the customer is redirected to Przelewy24's hosted payment page to choose their payment method. Direct card payments, BLIK, Google Pay, and Apple Pay are planned for future releases.

Features

  • Gateway redirect — Customer selects their preferred payment method on Przelewy24's hosted payment page
  • Full order lifecycle — Capture and refund (partial and full) from the Maho admin
  • Webhook support — Real-time payment and refund notifications with SHA384 signature verification
  • Cron safety net — Automatic polling of pending payments every 5 minutes in case webhooks fail
  • Sandbox mode — Test integration with Przelewy24's sandbox environment
  • Country restrictions — Allow payments from all or specific countries

Requirements

  • PHP >= 8.3
  • Maho Commerce >= 26.5.0
  • A Przelewy24 merchant account

Installation

composer require mahocommerce/module-przelewy24

Clear the cache after installation:

php maho cache:flush

Configuration

Navigate to System > Configuration > Payment Methods in the Maho admin panel.

General Settings (Przelewy24 - General Settings)

Setting Description Default
Sandbox Mode Use Przelewy24 sandbox for testing Yes
Merchant ID Your Przelewy24 merchant account ID
POS ID Point of Sale ID (usually same as Merchant ID)
CRC Key Used for request signing and webhook verification
API Key Used for HTTP Basic Authentication with the API

Payment Method (Przelewy24 - Gateway Payment)

Setting Description Default
Enabled Activate the payment method No
Title Payment method name shown at checkout Przelewy24
Applicable Countries All countries or specific countries only All
Sort Order Display position among payment methods 100

How It Works

  1. Order placement — Customer selects Przelewy24 at checkout, order is created in pending_payment state
  2. Registration — A transaction is registered with Przelewy24's API, returning a payment token
  3. Redirect — Customer is redirected to Przelewy24's hosted payment page to complete payment
  4. Webhook — Przelewy24 sends a signed notification to your store confirming payment
  5. Verification — The module verifies the transaction with Przelewy24's API and captures the payment
  6. Invoice — An invoice is automatically created and the order moves to processing

If the webhook fails to arrive, a cron job polls Przelewy24 every 5 minutes for pending orders (up to 24 hours old).

Webhooks

Configure the following webhook URL in your Przelewy24 merchant panel:

https://your-store.com/przelewy24/webhook/transaction

For refund notifications:

https://your-store.com/przelewy24/webhook/refund

Supported Currencies

All currencies supported by your Przelewy24 merchant account. Amounts are converted to grosze (1/100) for API communication.

Roadmap

  • BLIK (inline 6-digit code entry at checkout)
  • Direct card payments (Przelewy24 iframe)
  • Google Pay
  • Apple Pay

License

This module is licensed under the Open Software License v3.0.

Links

mahocommerce/module-przelewy24 适用场景与选型建议

mahocommerce/module-przelewy24 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 332 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 mahocommerce/module-przelewy24 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mahocommerce/module-przelewy24 我们能提供哪些服务?
定制开发 / 二次开发

基于 mahocommerce/module-przelewy24 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 332
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 32
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2026-04-10