定制 peachpayments/magento2-plugin-v2 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

peachpayments/magento2-plugin-v2

最新稳定版本:2.0.1

Composer 安装命令:

composer require peachpayments/magento2-plugin-v2

包简介

PeachPayments Hosted Magento 2 module, all-in-one payment solution for emerging African markets.

README 文档

README

Module Overview

The PeachPayments_Hosted module is an all-in-one payment solution for Magento 2, specifically designed for emerging African markets. It provides a secure and seamless integration with Peach Payments, supporting various payment flows including Hosted Payments, and Recurring Payments (Subscriptions).

Key Features

  • Multiple Payment Flows: Supports Hosted Payments integration method.
  • Recurring Payments: Full support for subscriptions and standing instructions.
  • Vault Support: Securely save customer payment methods for faster checkout.
  • Webhooks: Real-time transaction status updates and automated order processing.
  • Direct Buy Buttons: "Pay With Peach" shortcuts on Product Detail Pages (PDP) and Category Pages (PLP).
  • Refund Support: Process refunds directly from the Magento Admin.
  • Issue Reporting: Built-in tool for merchants to report issues directly to Peach Payments support.
  • Robust Logging: Comprehensive logging to both files and database for easy troubleshooting.

System Requirements

  • PHP: ^8.3 || ^8.4
  • Magento: >=2.4.8 (Framework ^103.0)

Installation

Manual Installation

  1. Create the following directory structure in your Magento root:
    mkdir -p app/code/PeachPayments/Hosted
    
  2. Copy the contents of this repository into app/code/PeachPayments/Hosted.

Composer Installation

Run the following command in your Magento root:

composer require peachpayments/magento2-plugin-v2

Finalizing Installation

After installing the files, run the following Magento CLI commands:

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

Conflict Notice

This module (peachpayments/magento2-plugin-v2) conflicts with the legacy peachpayments/magento2-plugin. Ensure the legacy plugin is removed before installing this version to prevent system errors.

Admin Configuration

Log in to the Magento Admin and navigate to:
Stores > Configuration > Sales > Payment Methods > Peach Payments - Hosted

Here you can configure:

  • Operation Mode (Sandbox/Live)
  • API Credentials (Entity ID, Client ID, Secret Token, etc.)
  • Recurring Payment settings
  • Checkout appearance (Title, Description, Logos)
  • PDP/PLP Shortcut buttons

Cron Jobs

The module utilizes the following cron jobs (configured in the default group):

Job NameSchedulePurpose
peach_payments_clean_database_logs_cronjob0 3 * * *Cleans up old payment logs from the database.
peach_payments_process_webhook_cronjob*/5 * * * *Processes pending webhooks from Peach Payments.
peach_payments_send_issue_report_cronjob*/5 * * * *Sends queued issue reports to support.

Logging

Logs are recorded in two ways:

  1. System Logs: Standard Magento logging (usually found in var/log/system.log).
  2. Database Logs: Transaction-specific logs stored in the peach_payment_log table. These can be managed and viewed via the database or cleared automatically by the cleanup cron job.

Compatability matrix

MagentoPeach Payments moduleParadoxLabs Subscription module
2.4.8Version: 2.0.0Version: 3.7.0
2.4.8Version: 2.0.1Version: 3.7.0

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固