Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dyd committed May 23, 2024
1 parent 85fbf3e commit 75b39b4
Show file tree
Hide file tree
Showing 949 changed files with 8,586 additions and 11,270 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.idea
vendor
phpspec_report.xml
phpcs_report.xml
phpmd_report.xml
4 changes: 3 additions & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<ruleset name="Genesis PHP Coding Standards">
<description>Generally-applicable sniffs for Genesis PHP</description>

<rule ref="PSR2" />
<rule ref="PSR12">
<exclude name="PSR12.Properties.ConstantVisibility"/>
</rule>

<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/spec/*</exclude-pattern>
Expand Down
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

48 changes: 48 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
2.0.0
-----
*Features**:

* Refactored code to PSR-12 Coding Style Guide
* Refactored code to PSR-4 Autoloader: all filenames and namespaces are now in PascalCase.
* Changed Genesis PHP SDK behaviour when the transaction state is an error: it no longer throws exceptions and if there is a response from the Genesis Gateway it is always returned despite its state
* Added handling for Gateway HTTP error codes 400+ instead of throwing an `Unknown Network Error` exception
* Removed `Genesis\Exceptions\ErrorAPI`
* Added magic method for transaction status checks in the Response class
* ->response()->isApproved()
* ->response()->isPendingAsync()
* ->response()->isError()
* etc, check [README.md](https://github.com/GenesisGateway/genesis_php/blob/master/README.md)
* Updated PHPSpec compatibility with PHP 8.1
* Added composer scripts used for development
* Removed code related to the following deprecated payment methods:
* AVS
* ABN iDeal
* Account Verification
* Alipay
* Astropay Card
* Astropay Direct
* Banamex
* Citadel PayIn
* Citadel PayOut
* Earthport
* Emprese de Energia
* Entercash
* Hipercard
* INPay
* InstantTransfer
* PayByVoucher Sale
* PayByVoucher Yeepay
* PayPal Express Checkout
* QIWI
* Santander Cash
* Surtimax
* Trustly Withdrawal
* TrustPay
* Zimpler
* Added CPF and CNPJ check requests to KYC services
* Added `protocol_sub_version` parameter to 3DSv2 credit card transactions

**Fixes**:

* Fixed various specs

1.24.6
-----
**Features**:
Expand Down
416 changes: 236 additions & 180 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.24.6
2.0.0
42 changes: 34 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "genesisgateway/genesis_php",
"description": "PHP Client for Genesis Payment Processing Gateway",
"version": "1.24.6",
"version": "2.0.0",
"license": "MIT",
"keywords": [
"3ds_v2",
Expand Down Expand Up @@ -60,7 +60,6 @@
"idebit",
"idebit_payin",
"idebit_payout",
"inpay",
"insta_debit",
"insta_debit_payin",
"insta_debit_payout",
Expand All @@ -75,7 +74,6 @@
"p24",
"pagofacil",
"paypal",
"paypal_express",
"pay_pal",
"paysafecard",
"paysec",
Expand Down Expand Up @@ -104,7 +102,6 @@
"transfer_to",
"trustly",
"trustly_sale",
"trustpay",
"webmoney",
"webpay",
"wechat",
Expand All @@ -125,17 +122,46 @@
"ext-openssl": "*"
},
"require-dev": {
"fakerphp/faker": "^1.20",
"phpspec/phpspec": "7.2.*@stable"
"fakerphp/faker": ">=1.0",
"phpspec/phpspec": ">=4.3",
"squizlabs/php_codesniffer": "^3.7.2",
"phpmd/phpmd": "^2.15.0"
},
"autoload": {
"psr-0": {
"Genesis": "src/"
"psr-4": {
"Genesis\\": "src/Genesis/"
}
},
"autoload-dev": {
"psr-4": {
"spec\\": "spec/"
}
},
"scripts": {
"test": [
"@php-spec"
],
"php-spec": [
"vendor/bin/phpspec run --format=pretty"
],
"php-cs": [
"vendor/bin/phpcs . --report=summary --standard=.phpcs.xml"
],
"php-md": [
"vendor/bin/phpmd . ansi ./.phpmd.xml --not-strict"
],
"php-spec-jenkins": [
"vendor/bin/phpspec run --format=junit > phpspec_report.xml"
],
"php-cs-jenkins": [
"vendor/bin/phpcs . --standard=.phpcs.xml --report=checkstyle --report-file=phpcs_report.xml"
],
"php-md-jenkins": [
"vendor/bin/phpmd . xml ./.phpmd.xml --reportfile phpmd_report.xml"
],
"styles": [
"@php-cs",
"@php-md"
]
}
}
Loading

0 comments on commit 75b39b4

Please sign in to comment.