Skip to content

Commit

Permalink
2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dyd committed Aug 12, 2024
1 parent b963c5d commit 427a98d
Show file tree
Hide file tree
Showing 1,356 changed files with 17,052 additions and 15,625 deletions.
20 changes: 19 additions & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,28 @@
<ruleset name="PrestaShop ECP Plugin Coding Standards">
<description>Generally-applicable sniffs for PrestaShop ECP Plugin</description>

<rule ref="PSR1" />
<!-- Code MUST follow all rules outlined in PSR-1. -->
<rule ref="PSR1">
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
</rule>

<!-- Controllers doesn't have Namespace -->
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>*/controllers/*</exclude-pattern>
<exclude-pattern>ecomprocessing.php</exclude-pattern>
</rule>

<!-- relative path from PHPCS source location -->
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma" />
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
<!-- include SlevomatCodingStandard -->

<rule ref="PSR2" />

<exclude-pattern>*/genesis/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/translations/*</exclude-pattern>
<exclude-pattern>*.min.css</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
</ruleset>
10 changes: 8 additions & 2 deletions .phpmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@
xsi:noNamespaceSchemaLocation="
http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
Rule Set for PrestaShop ecomprocessing Plugin
Rule Set for PrestaShop ecomrpocessing Plugin
</description>

<!--Start of CleanCode RuleSets-->
<rule ref="rulesets/cleancode.xml">
<exclude name="StaticAccess" />
<exclude name="BooleanArgumentFlag" />
<exclude name="ElseExpression" />
<exclude name="MissingImport" />
</rule>
<rule ref="rulesets/cleancode.xml/MissingImport">
<properties>
<property name="ignore-global" value="true"/>
</properties>
</rule>
<!--End of CleanCode RuleSets-->

Expand All @@ -23,7 +29,7 @@
<exclude name="TooManyPublicMethods"/>
</rule>
<!--End of CodeSize RuleSets-->

<rule ref="rulesets/design.xml"/>

<!--Start of Naming RuleSets-->
Expand Down
6 changes: 0 additions & 6 deletions Gemfile

This file was deleted.

53 changes: 0 additions & 53 deletions Gemfile.lock

This file was deleted.

125 changes: 125 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

44 changes: 31 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
E-Comprocessing Gateway Module for Prestashop
=============================
[![Software License](https://img.shields.io/badge/license-GPL-green.svg?style=flat)](http://opensource.org/licenses/gpl-2.0.php)

This is a Payment Module for Prestashop that gives you the ability to process payments through E-Comprocessing's Payment Gateway - Genesis.

Requirements
------------

* Prestashop 1.7.1 - 8.1.x (Tested up to __8.1.2__)
* [GenesisPHP v1.24.1](https://github.com/GenesisGateway/genesis_php/releases/tag/1.24.1) - (Integrated in Module)
* Prestashop 1.7.1 - 8.1.x (Tested up to __8.1.7__)
* [GenesisPHP v2.0.0](https://github.com/GenesisGateway/genesis_php/releases/tag/2.0.0) - (Integrated in Module)
* [Composer v2.5.5](https://github.com/composer/composer/releases/tag/2.5.5)

GenesisPHP Requirements
Expand Down Expand Up @@ -72,7 +73,7 @@ __Note__: If you have trouble with your credentials or terminal configuration, g

__Note__: For security reasons, the default cookie policy is set to Lax. In order for payments in iframe to work, the setting must be changed to None. The setting can be found in ```Configure``` -> ```Advanced Parameters``` -> ```Administration``` -> ```Cookie SameSite```

[support]: mailto:tech-support@e-comprocessing.com
[support]: mailto:tech-support@e-comprocessing.net

Supported Transactions
------------
Expand All @@ -99,7 +100,6 @@ Supported Transactions
* __eps__
* __eZeeWallet__
* __Fashioncheque__
* __GiroPay__
* __Google Pay__
* __iDeal__
* __iDebit__
Expand Down Expand Up @@ -129,15 +129,6 @@ Supported Transactions
* __Pix__
* __POLi__
* __Post Finance__
* __PPRO__
* __eps__
* __GiroPay__
* __Ideal__
* __Przelewy24__
* __SafetyPay__
* __TrustPay__
* __BCMC__
* __MyBank__
* __PSE__
* __RapiPago__
* __Redpagos__
Expand All @@ -155,3 +146,30 @@ Supported Transactions
* __WebMoney__
* __WebPay__
* __WeChat__

Development
------------
* Install dev packages
```shell
composer install
```
* Run Autoindex
```shell
composer autoindex
```
* Run PHP Code Sniffer
```shell
composer php-cs
```
* Run PHP Mess Detector
```shell
composer php-md
```
* Pack installation archive (Linux or macOS only)
```shell
composer pack
```
* Update License Headers
```shell
composer header-stamp
```
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.1.5
23 changes: 18 additions & 5 deletions bin/pack
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#!/bin/bash --login

[ -f ecomprocessing.zip ] && rm ecomprocessing.zip
composer install --no-dev
[ ! -L ecomprocessing ] && ln -s "$(pwd)" ecomprocessing
zip -r ecomprocessing \
folder_name="ecomprocessing"

# Remove existing archive
[ -f "${folder_name}.zip" ] && rm "${folder_name}.zip"

# Install without development dependencies
composer install -q --no-dev

# Add folder
[ ! -L "${folder_name}" ] && ln -s "$(pwd)" "${folder_name}"

# Pack
zip -rq "${folder_name}" \
ecomprocessing/src \
ecomprocessing/controllers \
ecomprocessing/translations \
Expand All @@ -18,4 +27,8 @@ zip -r ecomprocessing \
ecomprocessing/index.php \
ecomprocessing/config.xml \
ecomprocessing/.htaccess
[ -L ecomprocessing ] && rm ecomprocessing

# Remove folder
[ -L "${folder_name}" ] && rm "${folder_name}"

[ -f "${folder_name}.zip" ] && echo "The installation package (${folder_name}.zip) was packed!"
120 changes: 0 additions & 120 deletions classes/EcomprocessingConsumer.php

This file was deleted.

Loading

0 comments on commit 427a98d

Please sign in to comment.