Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from heidelpay/develop
Browse files Browse the repository at this point in the history
Merge changes for release version 1.0.0.0
  • Loading branch information
Simon Gabriel authored Dec 10, 2018
2 parents 0e5dda2 + 19b025a commit 3e64f67
Show file tree
Hide file tree
Showing 149 changed files with 11,658 additions and 2,952 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
.idea
/vendor/
/composer.lock
/build
/build
/LessonsLearned.md
43 changes: 39 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,51 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.0.0.0][1.0.0.0]

### Fix
* Fixed license information.
* Fixed package information.
* Fixed return values for several getters.

### Changed
* Changed versioning paradigm.
* Update documentation.
* Refactored examples.
* Refactored HttpAdapter implementation and made custom adapters injectable.
* Refactored exceptions.
* Reduced complexity in general.
* Refactored expiry date validation.
* Store transaction date as \DateTime instead of string.
* Enabled some skipped tests.
* Refactored integration tests.
* Changed travis configuration to perform unit tests with coverage-analysis instead of integration tests.
* Changed namespaces and packages.

### Added
* Added unit tests.
* Added debug handler injection.
* Added Metadata resource.
* Added fetching customer via (external) customerId.
* Added private key to Keypair resource.
* Added PIS payment type.
* Added ResourceNameService.
* Added method to create or update customer (uses customerId field to update if the id is not set).
* Added shipping address to customer resource.
* Added support info to readme file.
* Removed supported currencies and locales.

## [1.0.0-beta.2][1.0.0-beta.2]

### Fix
* Fix result urls.
* Fix PhpDoc.
* Fix result urls.
* Fix PhpDoc.

## [1.0.0-beta.1][1.0.0-beta.1]

### Added
* Beta release for the new php sdk.
* Beta release for the new php sdk.

[1.0.0-beta.1]: https://github.com/heidelpay/heidelpayPHP/tree/1.0.0-beta.1
[1.0.0-beta.2]: https://github.com/heidelpay/heidelpayPHP/tree/1.0.0-beta.2
[1.0.0-beta.2]: https://github.com/heidelpay/heidelpayPHP/compare/1.0.0-beta.1..1.0.0-beta.2
[1.0.0.0]: https://github.com/heidelpay/heidelpayPHP/compare/1.0.0-beta.2..1.0.0.0
4 changes: 2 additions & 2 deletions LICENSE
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Copyright 2018 Heidelpay GmbH
Copyright (C) 2018 Heidelpay GmbH

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/46f5a3e14f2144fb84d1989dca2a7a5c)](https://www.codacy.com/app/heidelpay/heidelpayPHP?utm_source=github.com&utm_medium=referral&utm_content=heidelpay/heidelpayPHP&utm_campaign=Badge_Grade)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a5fceb1b4f674fb49db39929559f3959)](https://www.codacy.com/app/heidelpay/heidelpayPHP?utm_source=github.com&utm_medium=referral&utm_content=heidelpay/heidelpayPHP&utm_campaign=Badge_Grade)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/a5fceb1b4f674fb49db39929559f3959)](https://www.codacy.com/app/heidelpay/heidelpayPHP?utm_source=github.com&utm_medium=referral&utm_content=heidelpay/heidelpayPHP&utm_campaign=Badge_Coverage)

![Logo](https://dev.heidelpay.com/devHeidelpay_400_180.jpg)

Expand All @@ -8,4 +9,21 @@ This SDK provides for an easy way to connect to the heidelpay Rest API.
Please refer to the following documentation for installation instructions and usage information.

* [API Documentation](https://docs.heidelpay.com/docs/introduction)
* [PHP SDK Documentation](https://docs.heidelpay.com/docs/php-sdk)
* [PHP SDK Documentation](https://docs.heidelpay.com/docs/php-sdk)
* [How to use the examples](https://docs.heidelpay.com/v1.0/docs/php-sdk#section-using-the-example-implementations)
* [Debugging](https://docs.heidelpay.com/v1.0/docs/php-sdk#section-debugging)

## Support
For any issues or questions please get in touch with our support.

### Web page
[https://dev.heidelpay.com/](https://dev.heidelpay.com/)

### Email
[email protected]

### Phone
+49 (0)6221/6471-100

### Twitter
@devHeidelpay
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,28 @@
}
],
"require": {
"ext-json": "*",
"ext-curl": "*"
"php": "^7.0.0|^7.1.0|^7.2.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^6.5",
"codacy/coverage": "^1.4",
"friendsofphp/php-cs-fixer": "^2.0"
},
"suggest": {
"ext-curl": "*"
},
"autoload": {
"psr-4": {
"heidelpay\\MgwPhpSdk\\": "src"
"heidelpayPHP\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"heidelpay\\MgwPhpSdk\\test\\": "test"
"heidelpayPHP\\test\\": "test"
}
},
"support": {
"email": "development@heidelpay.com"
"email": "support@heidelpay.com"
}
}
13 changes: 6 additions & 7 deletions examples/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
/**
* This file defines the constants needed for the card example.
*
* Copyright (C) 2018 heidelpay GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* @license http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* @copyright Copyright © 2016-present heidelpay GmbH. All rights reserved.
*
* @link http://dev.heidelpay.com/
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpay/mgw_sdk/examples
* @package heidelpayPHP/examples
*/

require_once __DIR__ . '/_enableExamples.php';
Expand All @@ -28,7 +29,5 @@
}

const EXAMPLE_BASE_FOLDER = HEIDELPAY_PHP_PAYMENT_API_URL . HEIDELPAY_PHP_PAYMENT_API_FOLDER;
define('SUCCESS_URL', EXAMPLE_BASE_FOLDER . 'Success.php' );
define('FAILURE_URL', EXAMPLE_BASE_FOLDER . 'Failure.php' );
define('PUBLIC_KEY', 's-pub-2a10ifVINFAjpQJ9qW8jBe5OJPBx6Gxa');
define('PRIVATE_KEY', 's-priv-2a102ZMq3gV4I3zJ888J7RR6u75oqK3n');
define('SUCCESS_URL', EXAMPLE_BASE_FOLDER . 'Success.php');
define('FAILURE_URL', EXAMPLE_BASE_FOLDER . 'Failure.php');
68 changes: 0 additions & 68 deletions examples/CreditCard/AuthController.php

This file was deleted.

96 changes: 0 additions & 96 deletions examples/CreditCard/AuthReversalController.php

This file was deleted.

Loading

0 comments on commit 3e64f67

Please sign in to comment.