承接 publicsquare-financial/magento-payments-plugin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

publicsquare-financial/magento-payments-plugin

Composer 安装命令:

composer require publicsquare-financial/magento-payments-plugin

包简介

The Magento plugin provides a one-click install into PublicSquare's payment gateway for credit and debit card processing.

README 文档

README

PublicSquare provides a software platform for retailers to access third-party providers for lease-to-own financing and other lending products based on a consumer's credit profile.

INSTALLATION

Manual Installation

  • extract files from an archive

  • deploy files into Magento2 folder app/code/

Enabled Extension

  • enable extension (in command line, see manual: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands.html):

$> bin/magento module:enable PublicSquare_Payments

  • to make sure that the enabled module is properly registered, run 'setup:upgrade':

$> bin/magento setup:upgrade

  • [if needed] re-deploy static view files:

$> bin/magento setup:static-content:deploy

Webhook Configuration

Automated Configuration

  • [after v0.2.0 upgrade]
bin/magento psq:configure-webhook
bin/magento cache:flush

Manual Configuration

  1. In the [https://portal.publicsquare.com](PublicSquare Portal) create a new webhook under Developer > Webhook with the following properties:
    • URL: {magento.hostname}/publicsquare-payments/webhook/index
    • Event Types:
      • refund:update
      • settlement:update
  2. Enter the Webhook ID and Webhook Key in to the Magento Admin panel under: Stores > Configuration > Sales > Payment Methods > PublicSquare

Docker Installation

If you need a local installation of Magento2, the cleanest way is to use Docker. This repo provides an out of the box installation with just a few commands.

  • Make sure docker engine is running

  • One-liner to install Magento

$ curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test 2.4.7 community

Replace 2.4.7 with the version of Magento you want to install.

Replace magento.test with the local domain you want to use.

$ open https://magento.test
  • Seed sample data
$ bin/magento sampledata:deploy
$ bin/magento setup:upgrade

Local environment using this repo (Docker + sample data)

This repository also includes a self-contained Docker setup and helper scripts to provision a full local environment (containers, Magento, this plugin, and sample data).

  1. Start / provision the IT stack (first time or after reset)

    # Will bring up containers, install Magento, deploy static content,
    # configure PublicSquare keys, and install Magento sample data.
    make it-complete-build
    • If you don't pass any arguments, it-install (called under the hood) will prompt for your PublicSquare PUBLIC and SECRET keys.
    • In CI or when scripting, you can pass the keys explicitly:
    make it-complete-build <PUBLICSQUARE_PUBLIC_KEY> <PUBLICSQUARE_SECRET_KEY>
  2. Subsequent runs

    • To restart the stack without reinstalling Magento:

      make it-down
      make it-up
    • To tear everything down and reset volumes:

      make it-reset

Deploying plugin changes in the IT/local environment

When you change this plugin's code and want Magento to pick up the changes (DI, static content, etc.) inside the IT Docker stack, use:

make deploy

This runs bin/deploy inside the web container, which will:

  • Run composer install inside the container
  • Enable maintenance mode
  • Clear generated code and preprocessed view files
  • Run bin/magento setup:upgrade
  • Recompile DI (bin/magento setup:di:compile)
  • Redeploy static content (bin/magento setup:static-content:deploy en_US -f)
  • Disable maintenance mode and flush caches

Use this after code changes to ensure Magento is fully rebuilt and serving updated assets.

Automated tests

Running acceptance tests locally

composer install
php vendor/bin/codecept run Acceptance --steps

Running integration/acceptance tests against the IT stack

Once your IT environment is up (for example via make it-complete-build), you can execute the full Codeception test suite wired for the Docker stack with:

make it-test

To run codecept with detail breakdown of steps and debugging add these flags:

./vendor/bin/codecept run tests/Acceptance/ --steps --debug

using the configuration in codeception.yml and tests/Acceptance.suite.yml, against http://magento.test via Selenium/WebDriver.

publicsquare-financial/magento-payments-plugin 适用场景与选型建议

publicsquare-financial/magento-payments-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 04 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 publicsquare-financial/magento-payments-plugin 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-04-17