Skip to content

Commit

Permalink
Merge branch 'release/4.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jan 11, 2022
2 parents 4f3f770 + 9bc8ea9 commit d74d583
Show file tree
Hide file tree
Showing 20 changed files with 277 additions and 184 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@

# WordPress
/wordpress/
/wp-content/
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## [Unreleased][unreleased]
-

## [4.0.0] - 2022-01-11
### Changed
- Updated to https://github.com/pronamic/wp-pay-core/releases/tag/4.0.0.

## [3.0.1] - 2021-08-24
- Fixed "Fatal error: Uncaught Error: Call to undefined method Pronamic\WordPress\Money\Money::get_including_tax()".

Expand Down Expand Up @@ -93,7 +97,8 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## 1.0.0 - 2014-12-15
- First release.

[unreleased]: https://github.com/wp-pay-gateways/pay-nl/compare/3.0.1...HEAD
[unreleased]: https://github.com/wp-pay-gateways/pay-nl/compare/4.0.0...HEAD
[4.0.0]: https://github.com/wp-pay-gateways/pay-nl/compare/3.0.1...4.0.0
[3.0.1]: https://github.com/wp-pay-gateways/pay-nl/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/wp-pay-gateways/pay-nl/compare/2.1.2...3.0.0
[2.1.2]: https://github.com/wp-pay-gateways/pay-nl/compare/2.1.1...2.1.2
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"require": {
"php": ">=5.6.20",
"wp-pay/core": "^3.0"
"wp-pay/core": "^4.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
Expand All @@ -43,7 +43,8 @@
"phpunit/phpunit": "^5.7 || ^6.0",
"pronamic/wp-coding-standards": "^1.0",
"roots/wordpress": "^5.8",
"wp-phpunit/wp-phpunit": "^5.8"
"wp-phpunit/wp-phpunit": "^5.8",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
"coveralls": "vendor/bin/php-coveralls -v",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pay-nl",
"version": "3.0.1",
"version": "4.0.0",
"description": "Pay.nl driver for the WordPress payment processing library.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Title: Pay.nl client
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Title: Pay.nl config
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
2 changes: 1 addition & 1 deletion src/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Title: Pay.nl error
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
14 changes: 4 additions & 10 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Title: Pay.nl gateway
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down Expand Up @@ -75,7 +75,7 @@ public function get_issuers() {
*/
public function get_supported_payment_methods() {
return array(
PaymentMethods::AFTERPAY,
PaymentMethods::AFTERPAY_NL,
PaymentMethods::BANCONTACT,
PaymentMethods::BANK_TRANSFER,
PaymentMethods::CREDIT_CARD,
Expand All @@ -99,7 +99,7 @@ public function get_supported_payment_methods() {
* @param Payment $payment Payment.
*/
public function start( Payment $payment ) {
$payment_method = $payment->get_method();
$payment_method = $payment->get_payment_method();

$customer = $payment->get_customer();

Expand Down Expand Up @@ -234,15 +234,9 @@ public function start( Payment $payment ) {
$request['paymentOptionId'] = $method;
}

// Check payment method.
if ( null === $request['paymentOptionId'] && ! empty( $payment_method ) ) {
// Leap of faith if the WordPress payment method could not transform to a Pay.nl method?
$request['paymentOptionId'] = $payment_method;
}

// Set payment method specific parameters.
if ( PaymentMethods::IDEAL === $payment_method ) {
$request['paymentOptionSubId'] = $payment->get_issuer();
$request['paymentOptionSubId'] = $payment->get_meta( 'issuer' );
}

// Start transaction.
Expand Down
2 changes: 1 addition & 1 deletion src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Title: Pay.nl integration
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
7 changes: 4 additions & 3 deletions src/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Title: Pay.nl payment methods
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Reüel van der Steege
Expand All @@ -24,8 +24,9 @@ class Methods {
* 1921 = AfterPay NL B2B
* 1918 = AfterPay NL B2C
*
* @link https://admin.pay.nl/data/payment_profiles
* Note: this is for AfterPay (afterpay.nl) and not for Afterpay (afterpay.com)
*
* @link https://admin.pay.nl/data/payment_profiles
* @var string
*/
const AFTERPAY = '739';
Expand Down Expand Up @@ -155,7 +156,7 @@ class Methods {
* @var array
*/
private static $map = array(
PaymentMethods::AFTERPAY => self::AFTERPAY,
PaymentMethods::AFTERPAY_NL => self::AFTERPAY,
PaymentMethods::BANCONTACT => self::BANCONTACT,
PaymentMethods::BANK_TRANSFER => self::BANKTRANSFER,
PaymentMethods::CREDIT_CARD => self::CREDITCARD,
Expand Down
2 changes: 1 addition & 1 deletion src/OutputOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Title: Pay.nl output options
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
2 changes: 1 addition & 1 deletion src/Statuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Title: Pay.nl statuses
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
2 changes: 1 addition & 1 deletion src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Title: Pay.nl utility class
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Bootstrap tests
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2021 Pronamic
* @copyright 2005-2022 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\PayNL
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/phpstan/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Definitions for PHPStan.
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2021 Pronamic
* @copyright 2005-2022 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/src/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Title: Pay.nl client test
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
2 changes: 1 addition & 1 deletion tests/src/ErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Title: Pay.nl error tests
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
2 changes: 1 addition & 1 deletion tests/src/StatusesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Title: Pay.nl states constants tests
* Description:
* Copyright: 2005-2021 Pronamic
* Copyright: 2005-2022 Pronamic
* Company: Pronamic
*
* @author Remco Tolsma
Expand Down
36 changes: 18 additions & 18 deletions vendor-bin/phpstan/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d74d583

Please sign in to comment.