Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 6.2.0 #196

Merged
merged 24 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3dce629
Update README.md
Aleffio Mar 27, 2020
0bb46ae
Update dependency phpunit/phpunit to v9.0.2
renovate-bot Apr 1, 2020
91a312b
Merge pull request #179 from renovate-bot/renovate/phpunit-phpunit-9.x
cyattilakiss Apr 2, 2020
706254f
Update dependency phpunit/phpunit to v9.1.1 (#180)
renovate-bot Apr 6, 2020
90c2ef1
remove duplicated classmap (#185)
rvitaliy Apr 21, 2020
ec1f647
fix client types declarations (#186)
rvitaliy Apr 21, 2020
f4fa352
added .gitattributes to remove useless files for production from pack…
rvitaliy Apr 28, 2020
7a56432
Create SECURITY.md
msilvagarcia May 8, 2020
d0cbe1e
update readme with a link to contact support
rikterbeek May 13, 2020
8f52da2
[PW-2387]: IP validation function (#193)
acampos1916 May 18, 2020
7097f0d
Update composer.lock (#182)
msilvagarcia May 18, 2020
4c6eac0
Create a GitHub Actions workflow
msilvagarcia May 18, 2020
e468edb
Fix PHP CodeSniffer problems
May 18, 2020
a176d75
Fix PHP CodeSniffer problems
May 18, 2020
aae7322
Update SonarCloud settings
May 18, 2020
65af4e1
Generate coverage reports
May 19, 2020
b21cefe
Fix SonarCloud configuration
May 19, 2020
ac1ac9e
Improve reporting relevancy
May 19, 2020
d6100a1
Create a GitHub Actions workflow (#194)
msilvagarcia May 19, 2020
e97baa7
Update dependency squizlabs/php_codesniffer to v3.5.5 (#187)
renovate-bot May 19, 2020
7e0b019
Update dependency phpunit/phpunit to v9.1.4 (#191)
renovate-bot May 19, 2020
5eefb78
Version bump to 6.2.0
acampos1916 May 20, 2020
491f74f
Update README.md
acampos1916 May 20, 2020
a18c530
Add Code Coverage metrics to SonarCloud (#195)
msilvagarcia May 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Auto-detect text files, ensure they use LF.
* text=auto eol=lf

# Exclude non-essential files from dist
/.github export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/CODE_OF_CONDUCT.md export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/phpcs.xml export-ignore
/phpunit.xml export-ignore
/renovate.json export-ignore
/Vagrantfile export-ignore
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on: ["push", "pull_request"]
name: Main Workflow

jobs:
run:
name: Run
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Disabling shallow clone to improve relevancy of SonarCloud reporting
fetch-depth: 0

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: vendor/bin/phpunit --testsuite=unit --coverage-clover build/clover.xml --log-junit build/tests-log.xml

# PHPUnit generates absolute file paths and SonarCloud expects relative file paths. This command removes the
# current working directory from the report files.
- name: Clean up reports
run: sed -i "s;`pwd`/;;g" build/*.xml

- name: Run PHP Code Sniffer
run: vendor/bin/phpcs

- name: Make sure project files are compilable
run: find -L . -path ./vendor -prune -o -path ./tests -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l

- name: SonarCloud integration
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ The Library supports all APIs under the following services:
* Terminal API (Cloud based)

## Requirements
PHP 5.3 or higher
PHP >=5.3 for production
PHP >=7.3 for development

## Installation ##
You can use Composer or simply Download the Release
Expand All @@ -36,7 +37,7 @@ composer require adyen/php-api-library
```

## Usage
To make the automatice testing cases working for your account change the credentials in the config/test.ini file.
To make the automatic testing cases work for your account change the credentials in the config/test.ini file.

### Examples ###

Expand Down Expand Up @@ -123,14 +124,14 @@ $result = $service->refund($params);

## Documentation ##
* https://docs.adyen.com/developers/development-resources/libraries
* https://docs.adyen.com/developers/checkout/api-integration
* https://docs.adyen.com/developers/checkout

## Tests ##
For the test cases you need the PCI permission enabled on you account. There are no test cases for CSE because credit card data is encrypted through our javascript library.
By default the test will then be skipped. If you have these permissions fill in your account details in the config/test.ini file to let the test work.

## Support
If you have any problems, questions or suggestions, create an issue here or send your inquiry to support@adyen.com.
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://support.adyen.com/hc/en-us/requests/new?ticket_form_id=360000705420).

## Contributing
We strongly encourage you to join us in contributing to this repository so everyone can benefit from:
Expand Down
23 changes: 23 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| 6.x.x | :white_check_mark: |
| 5.x.x | :x: |
| < 5.0 | :x: |

## Reporting a Vulnerability

We welcome reports of possible vulnerabilities or issues as part of our responsible disclosure program. At this point in time we do not run a bug bounty program.

To report a security issue, [contact Support](https://support.adyen.com/hc/en-us/requests/new).

If the nature of the security issue is sensitive, please provide the following:

* Describe the issue to help us determine priority.
* Provide your PGP public key.
* Request contact from the Adyen security team.

The security team will communicate directly with you using PGP encrypted emails.
11 changes: 4 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,20 @@
"license": "Apache-2.0",
"require": {
"php": ">=5.3",
"monolog/monolog": ">=1.16"
"monolog/monolog": "^1.16"
},
"require-dev": {
"dms/phpunit-arraysubset-asserts": "0.2.0",
"friendsofphp/php-cs-fixer": "*",
"phpunit/phpunit": "9.0.1",
"phpunit/phpunit": "9.1.4",
"php-coveralls/php-coveralls": "2.2.0",
"squizlabs/php_codesniffer": "3.5.4",
"squizlabs/php_codesniffer": "3.5.5",
"ext-json": "*"
},
"autoload": {
"psr-4": {
"Adyen\\": "src/Adyen/"
},
"classmap": [
"src/Adyen/Service/"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down
Loading