Skip to content

Commit

Permalink
Merge branch 'release/2.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Apr 26, 2021
2 parents 8093076 + 227fcba commit 33f7a22
Show file tree
Hide file tree
Showing 53 changed files with 2,385 additions and 93 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/composer.lock
/vendor/

# Composer bin plugin
/vendor-bin/**/vendor

# Eclipse
/.buildpath
/.project
Expand Down
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ install:
- composer self-update
# Install Composer packages.
- composer install
# PHPStan
- if [ "$PHPSTAN" == "1" ]; then composer bin phpstan install; fi
# Psalm
- if [ "$PSALM" == "1" ]; then composer bin psalm install; fi
# Test on specific WordPress version.
- composer require --dev --update-with-dependencies roots/wordpress:${WP_VERSION} wp-phpunit/wp-phpunit:${WP_VERSION}
# List available packages.
Expand All @@ -89,9 +93,9 @@ script:
# PHP Mess Detector
- if [ "$PHPMD" == "1" ]; then composer run-script phpmd; fi
# PHPStan
- if [ "$PHPSTAN" == "1" ]; then phpstan analyze; fi
- if [ "$PHPSTAN" == "1" ]; then composer run-script phpstan; fi
# Psalm
- if [ "$PSALM" == "1" ]; then psalm; fi
- if [ "$PSALM" == "1" ]; then composer run-script psalm; fi

after_success:
- if [ "$COVERAGE" == "1" ]; then composer run-script coveralls; fi
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## [Unreleased][unreleased]
-

## [2.3.0] - 2021-04-26
- Added support for single-page checkout.

## [2.2.3] - 2021-02-08
- Fixed showing payment method specific input fields.

Expand Down Expand Up @@ -116,7 +119,8 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## 1.0.0 - 2016-02-01
- First release.

[unreleased]: https://github.com/wp-pay-extensions/memberpress/compare/2.2.3...HEAD
[unreleased]: https://github.com/wp-pay-extensions/memberpress/compare/2.3.0...HEAD
[2.3.0]: https://github.com/wp-pay-extensions/memberpress/compare/2.2.3...2.3.0
[2.2.3]: https://github.com/wp-pay-extensions/memberpress/compare/2.2.2...2.2.3
[2.2.2]: https://github.com/wp-pay-extensions/memberpress/compare/2.2.1...2.2.2
[2.2.1]: https://github.com/wp-pay-extensions/memberpress/compare/2.2.0...2.2.1
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Grunt tasks.
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,29 @@
"wp-pay/core": "^2.6"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"php-coveralls/php-coveralls": "^2.1",
"bamarni/composer-bin-plugin": "^1.4",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"php-coveralls/php-coveralls": "^2.4",
"phpcompatibility/php-compatibility": "^9.2",
"phpcompatibility/phpcompatibility-wp": "^2.0",
"phpmd/phpmd": "^2.7",
"phpunit/phpunit": "^5.7 || ^6.0",
"roots/wordpress": "^5.6",
"squizlabs/php_codesniffer": "^3.4",
"wp-coding-standards/wpcs": "^2.1",
"wp-coding-standards/wpcs": "^2.3",
"wp-phpunit/wp-phpunit": "^5.6",
"wp-premium/memberpress-basic": "^1.3"
},
"scripts": {
"coveralls": "vendor/bin/coveralls -v",
"coveralls": "vendor/bin/php-coveralls -v",
"phpcbf": "vendor/bin/phpcbf",
"phpcs": "vendor/bin/phpcs -s -v",
"phplint": "find src tests -name '*.php' | xargs -n 1 -P 4 php -l",
"phpmd": "vendor/bin/phpmd src,tests text phpmd.ruleset.xml --suffixes php",
"phpunit": "vendor/bin/phpunit"
"phpstan": "vendor/bin/phpstan analyse",
"phpunit": "vendor/bin/phpunit",
"post-install-cmd": "echo 'Optionally run: composer bin all install'",
"post-update-cmd": "echo 'Optionally run: composer bin all update'",
"psalm": "vendor/bin/psalm"
}
}
2 changes: 1 addition & 1 deletion gateways/MeprApplePayGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Apple Pay gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprBankTransferGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Bank transfer gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprBitcoinGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Bitcoin gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprCreditCardGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Credit card gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprDirectDebitBancontactGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Direct Debit mandate via Bancontact gateway alias.
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprDirectDebitGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Direct Debit gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprDirectDebitIDealGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Direct Debit mandate via iDEAL gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprDirectDebitSofortGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Direct Debit mandate via Sofort gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprIDealGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* IDeal gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprMisterCashGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Bancontact/Mister Cash gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprPronamicGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Pronamic gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprPronamicPayPalGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Pronamic PayPal gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprPrzelewy24Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Przelewy24 gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion gateways/MeprSofortGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sofort gateway alias
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
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": "memberpress",
"version": "2.2.3",
"version": "2.3.0",
"description": "MemberPress driver for the WordPress payment processing library.",
"repository": {
"type": "git",
Expand Down
7 changes: 5 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
includes:
- vendor-bin/phpstan/vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
customRulesetUsed: false
level: max
bootstrap: tests/bootstrap.php
bootstrapFiles:
- tests/phpstan/bootstrap.php
paths:
- src
- src/
1 change: 0 additions & 1 deletion psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<MissingReturnType errorLevel="info" />
<MissingPropertyType errorLevel="info" />
<InvalidDocblock errorLevel="info" />
<MisplacedRequiredParam errorLevel="info" />

<PropertyNotSetInConstructor errorLevel="info" />
<MissingConstructor errorLevel="info" />
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/AdminSubscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Admin subscriptions
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/AdminTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Admin transactions
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Extension
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/
Expand Down
5 changes: 2 additions & 3 deletions src/Gateways/ApplePayGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
* Apple Pay gateway
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/

namespace Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways;

use Pronamic\WordPress\Pay\Core\PaymentMethods;
use Pronamic\WordPress\Pay\Extensions\MemberPress\Pronamic;

/**
* WordPress pay MemberPress Apple Pay gateway
Expand Down Expand Up @@ -62,6 +61,6 @@ public function get_alias() {
* @return string
*/
protected function get_icon() {
return Pronamic::get_method_icon_url( $this->payment_method );
return PaymentMethods::get_icon_url( PaymentMethods::APPLE_PAY );
}
}
5 changes: 2 additions & 3 deletions src/Gateways/BancontactGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
* Bancontact/Mister Cash gateway
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/

namespace Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways;

use Pronamic\WordPress\Pay\Core\PaymentMethods;
use Pronamic\WordPress\Pay\Extensions\MemberPress\Pronamic;

/**
* WordPress pay MemberPress Bancontact/Mister Cash gateway
Expand Down Expand Up @@ -44,6 +43,6 @@ public function get_alias() {
* @return string
*/
protected function get_icon() {
return Pronamic::get_method_icon_url( $this->payment_method );
return PaymentMethods::get_icon_url( PaymentMethods::BANCONTACT );
}
}
5 changes: 2 additions & 3 deletions src/Gateways/BankTransferGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
* Bank transfer gateway
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/

namespace Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways;

use Pronamic\WordPress\Pay\Core\PaymentMethods;
use Pronamic\WordPress\Pay\Extensions\MemberPress\Pronamic;

/**
* WordPress pay MemberPress bank transfer gateway
Expand Down Expand Up @@ -44,6 +43,6 @@ public function get_alias() {
* @return string
*/
protected function get_icon() {
return Pronamic::get_method_icon_url( $this->payment_method );
return PaymentMethods::get_icon_url( PaymentMethods::BANK_TRANSFER );
}
}
5 changes: 2 additions & 3 deletions src/Gateways/BitcoinGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
* Bitcoin gateway
*
* @author Pronamic <[email protected]>
* @copyright 2005-2020 Pronamic
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Extensions\MemberPress
*/

namespace Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways;

use Pronamic\WordPress\Pay\Core\PaymentMethods;
use Pronamic\WordPress\Pay\Extensions\MemberPress\Pronamic;

/**
* WordPress pay MemberPress Bitcoin gateway
Expand Down Expand Up @@ -44,6 +43,6 @@ public function get_alias() {
* @return string
*/
protected function get_icon() {
return Pronamic::get_method_icon_url( $this->payment_method );
return PaymentMethods::get_icon_url( PaymentMethods::BITCOIN );
}
}
Loading

0 comments on commit 33f7a22

Please sign in to comment.