Skip to content

Commit

Permalink
Merge branch 'release/3.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Aug 19, 2021
2 parents 9b552c1 + 9935871 commit aad16b9
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 2 deletions.
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]
-

## [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".

Expand Down Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions gateways/MeprGiropayGateway.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Giropay gateway alias
*
* @author Pronamic <[email protected]>
* @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' );
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": "3.0.2",
"version": "3.0.3",
"description": "MemberPress driver for the WordPress payment processing library.",
"repository": {
"type": "git",
Expand Down
48 changes: 48 additions & 0 deletions src/Gateways/GiropayGateway.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php
/**
* Giropay gateway
*
* @author Pronamic <[email protected]>
* @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 );
}
}

0 comments on commit aad16b9

Please sign in to comment.