-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | ||
} | ||
} |