diff --git a/CHANGELOG.md b/CHANGELOG.md index 0971901..93a3f4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C ## [Unreleased][unreleased] - +## [3.0.3] - 2021-08-19 +- Added Giropay gateway. + ## [3.0.2] - 2021-08-16 - Fixed "Fatal error: Uncaught Error: Call to a member function get_periods() on bool". @@ -144,7 +147,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/3.0.2...HEAD +[unreleased]: https://github.com/wp-pay-extensions/memberpress/compare/3.0.3...HEAD +[3.0.3]: https://github.com/wp-pay-extensions/memberpress/compare/3.0.2...3.0.3 [3.0.2]: https://github.com/wp-pay-extensions/memberpress/compare/3.0.1...3.0.2 [3.0.1]: https://github.com/wp-pay-extensions/memberpress/compare/3.0.0...3.0.1 [3.0.0]: https://github.com/wp-pay-extensions/memberpress/compare/2.3.3...3.0.0 diff --git a/gateways/MeprGiropayGateway.php b/gateways/MeprGiropayGateway.php new file mode 100644 index 0000000..d481a70 --- /dev/null +++ b/gateways/MeprGiropayGateway.php @@ -0,0 +1,11 @@ + + * @copyright 2005-2021 Pronamic + * @license GPL-3.0-or-later + * @package Pronamic\WordPress\Pay\Extensions\MemberPress + */ + +class_alias( 'Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways\GiropayGateway', 'MeprGiropayGateway' ); diff --git a/package.json b/package.json index 5dcb8b1..6cfe4c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "memberpress", - "version": "3.0.2", + "version": "3.0.3", "description": "MemberPress driver for the WordPress payment processing library.", "repository": { "type": "git", diff --git a/src/Gateways/GiropayGateway.php b/src/Gateways/GiropayGateway.php new file mode 100644 index 0000000..88270b5 --- /dev/null +++ b/src/Gateways/GiropayGateway.php @@ -0,0 +1,48 @@ + + * @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; + +/** + * WordPress pay MemberPress Giropay gateway + * + * @author Remco Tolsma + * @version 3.0.3 + * @since 3.0.3 + */ +class GiropayGateway extends Gateway { + /** + * Payment method. + * + * @var string + */ + protected $payment_method = PaymentMethods::GIROPAY; + + /** + * Get alias class name of this gateway. + * + * @return string + */ + public function get_alias() { + return 'MeprGiropayGateway'; + } + + /** + * Get icon function, please note that this is not a MemberPress function. + * + * @since 1.0.2 + * @return string + */ + protected function get_icon() { + return PaymentMethods::get_icon_url( PaymentMethods::GIROPAY ); + } +}