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 #151 from heidelpay/develop
Browse files Browse the repository at this point in the history
Release 1.2.6.0
  • Loading branch information
Simon Gabriel authored Jan 9, 2020
2 parents 9eecc31 + d8fe6fb commit 55b7720
Show file tree
Hide file tree
Showing 288 changed files with 4,380 additions and 3,937 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
/vendor/
/composer.lock
/build
/LessonsLearned.md
/myreport.html/
61 changes: 45 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,51 @@ dist: trusty
matrix:
fast_finish: true
include:
- php: 7.0
env: deps=no
- php: 7.0
env: deps=high
- php: 7.1
env: deps=no
- php: 7.1
env: deps=high
- php: 7.2
env: deps=no
- php: 7.2
env: deps=high
- php: 7.3
env: deps=no
- php: 7.3
env: deps=high
- name: "php 7.0 (install) - unit"
php: 7.0
env:
- DEPS=NO
- LEVEL=UNIT
- name: "php 7.0 (update) - unit"
php: 7.0
env:
- DEPS=HIGH
- LEVEL=UNIT
- name: "php 7.0 (update) - integration"
php: 7.0
env:
- DEPS=HIGH
- LEVEL=INTEGRATION
- name: "php 7.1 (install) - unit"
php: 7.1
env:
- DEPS=NO
- LEVEL=UNIT
- name: "php 7.1 (update) - unit"
php: 7.1
env:
- DEPS=HIGH
- LEVEL=UNIT
- name: "php 7.2 (install) - unit"
php: 7.2
env:
- DEPS=NO
- LEVEL=UNIT
- name: "php 7.2 (update) - unit"
php: 7.2
env:
- DEPS=HIGH
- LEVEL=UNIT
- name: "php 7.3 (install) - unit"
php: 7.3
env:
- DEPS=NO
- LEVEL=UNIT
- name: "php 7.3 (update) - unit"
php: 7.3
env:
- DEPS=HIGH
- LEVEL=UNIT
cache:
directories:
- $HOME/.composer/cache
Expand Down
33 changes: 26 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,35 @@ 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.2.5.1][1.2.5.1]
## [1.2.6.0][1.2.6.0]

### Fix
### Added
* Example for Payment Type `Przelewy24`.

### Fixed
* A bug which led to an error when trying to cancel the initial transaction of a charged invoice.
* Composer: PHP version constraint.
* Several minor issues.

### Changed
* Refactor travis config.
* Refactor heidelpay facade to implement service interfaces.
* Move payment cancel methods to cancel service.
* Cleanup doc comments.
* Refactor unit tests.
* Refactor access modifiers of setters intended for system access only.

### Remove
* Move method doc blocks to service interfaces.
* Remove dead code.

## [1.2.5.0][1.2.5.0]

### Added
* Hire purchase direct debit payment type (FlexiPay Rate) including example implementation.
* Hire purchase direct debit payment type (FlexiPay® Rate) including example implementation.
* Additional parameters from payment type to transactions.
* Facade method to update payment type.
* Property invoiceId to `Payment` class.
* Property `invoiceId` to `Payment` class.
* Added card details to `Card` payment type.
* Property `card3ds` to `Paypage`.
* Geolocation to `Customer` resource.
Expand All @@ -23,7 +40,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
### Changed
* Refactor invoice guaranteed tests to make them independent from each other.
* Response Code for basket item image extension error has been deprecated since it has been removed from the API.
* Refactored cancellation feature to support FlexiPay Rate cancel.
* Refactored cancellation feature to support FlexiPay® Rate cancel.
* Remove trailing slash from routes.
* Float values are now rounded with 4 decimal places when exposed to the API. The value of the local object will be updated as well.

Expand Down Expand Up @@ -94,6 +111,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [1.2.0.0][1.2.0.0]

### This update contains breaking changes and you might have to update your implementation

### Changed
* Refactored all examples.
* Fixed iDeal example.
Expand Down Expand Up @@ -203,7 +222,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [1.1.0.0][1.1.0.0]

###### This update contains breaking changes and you will most certainly have to update your implementation
### This update contains breaking changes and you might have to update your implementation

### Changed
* Payment types `Prepayment`, `Invoice` and `Invoice guaranteed` can no longer perform the authorize transaction but only direct charge.
Expand Down Expand Up @@ -337,4 +356,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
[1.2.3.0]: https://github.com/heidelpay/heidelpayPHP/compare/1.2.2.0..1.2.3.0
[1.2.4.0]: https://github.com/heidelpay/heidelpayPHP/compare/1.2.3.0..1.2.4.0
[1.2.5.0]: https://github.com/heidelpay/heidelpayPHP/compare/1.2.4.0..1.2.5.0
[1.2.5.1]: https://github.com/heidelpay/heidelpayPHP/compare/1.2.5.0..1.2.5.1
[1.2.6.0]: https://github.com/heidelpay/heidelpayPHP/compare/1.2.5.0..1.2.6.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Please refer to the following documentation for installation instructions and us
* SEPA direct debit (guaranteed)
* SOFORT
* EPS
* FlexiPay Direct (PIS)
* FlexiPay® Direct (PIS)
* Alipay
* WeChat Pay
* Invoice Factoring
* FlexiPay Rate (Hire Purchase Direct Debit)
* FlexiPay® Rate (Hire Purchase Direct Debit)

## Supported features
* Webhooks and event handling
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.0.0|^7.1.0|^7.2.0|^7.3.0",
"php": "~7.0.0|~7.1.0|~7.2.0|~7.3.0",
"ext-json": "*"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion examples/Alipay/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

require_once __DIR__ . '/../Constants.php';
Expand Down
2 changes: 1 addition & 1 deletion examples/Alipay/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/Alipay/ReturnController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/Alipay/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/Card/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

require_once __DIR__ . '/../Constants.php';
Expand Down
2 changes: 1 addition & 1 deletion examples/Card/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/Card/ReturnController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/Card/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/CardRecurring/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

require_once __DIR__ . '/../Constants.php';
Expand Down
2 changes: 1 addition & 1 deletion examples/CardRecurring/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
10 changes: 3 additions & 7 deletions examples/CardRecurring/ReturnController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down Expand Up @@ -65,12 +65,8 @@ function redirect($url, $merchantMessage = '', $clientMessage = '')
/** @var Card $paymentType */
$paymentType = $heidelpay->fetchPaymentType($paymentTypeId);

switch (true) {
case $paymentType->isRecurring():
redirect(SUCCESS_URL);
break;
default:
break;
if ($paymentType->isRecurring()) {
redirect(SUCCESS_URL);
}

} catch (HeidelpayApiException $e) {
Expand Down
2 changes: 1 addition & 1 deletion examples/CardRecurring/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

require_once __DIR__ . '/_enableExamples.php';
Expand Down
2 changes: 1 addition & 1 deletion examples/EPSCharge/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

require_once __DIR__ . '/../Constants.php';
Expand Down
2 changes: 1 addition & 1 deletion examples/EPSCharge/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/EPSCharge/ReturnController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/EPSCharge/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/EmbeddedPayPage/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

require_once __DIR__ . '/../Constants.php';
Expand Down
2 changes: 1 addition & 1 deletion examples/EmbeddedPayPage/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/EmbeddedPayPage/ReturnController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/EmbeddedPayPage/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

/** Require the constants of this example */
Expand Down
2 changes: 1 addition & 1 deletion examples/ExampleDebugHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/test/integration
* @package heidelpayPHP\examples
*/
namespace heidelpayPHP\examples;

Expand Down
2 changes: 1 addition & 1 deletion examples/Failure.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author Simon Gabriel <[email protected]>
*
* @package heidelpayPHP/examples
* @package heidelpayPHP\examples
*/

session_start();
Expand Down
Loading

0 comments on commit 55b7720

Please sign in to comment.