Download the PHP package publicsquare-financial/magento-payments-plugin without Composer
On this page you can find all versions of the php package publicsquare-financial/magento-payments-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download publicsquare-financial/magento-payments-plugin
More information about publicsquare-financial/magento-payments-plugin
Files in publicsquare-financial/magento-payments-plugin
Package magento-payments-plugin
Short Description The Magento plugin provides a one-click install into PublicSquare's payment gateway for credit and debit card processing.
License
Informations about the package magento-payments-plugin
PublicSquare Financial
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]
Manual Configuration
- 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
- URL:
- 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
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)[https://magento.test] to confirm installation
- Seed sample data
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).
-
Start / provision the IT stack (first time or after reset)
- 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:
- If you don't pass any arguments,
-
Subsequent runs
-
To restart the stack without reinstalling Magento:
- To tear everything down and reset volumes:
-
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:
This runs bin/deploy inside the web container, which will:
- Run
composer installinside 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
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:
To run codecept with detail breakdown of steps and debugging add these flags:
using the configuration in codeception.yml and tests/Acceptance.suite.yml, against http://magento.test via Selenium/WebDriver.