for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Direct Debit mandate via Sofort 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;
use Pronamic\WordPress\Pay\Plugin;
* WordPress pay MemberPress Direct Debit mandate via Sofort gateway
* @author Reüel van der Steege
* @version 2.0.1
* @since 1.0.6
class DirectDebitSofortGateway extends Gateway {
* Constructs and initialize credit card gateway.
public function __construct() {
parent::__construct( 'MeprDirectDebitSofortGateway', PaymentMethods::DIRECT_DEBIT_SOFORT );
// Capabilities.
$this->capabilities = array(
'process-payments',
'create-subscriptions',
'cancel-subscriptions',
'update-subscriptions',
'suspend-subscriptions',
'resume-subscriptions',
'subscription-trial-payment',
);
}
* Get icon function, please note that this is not a MemberPress function.
* @since 2.0.8
* @return string
protected function get_icon() {
return plugins_url( 'images/direct-debit-sofort/icon-32x32.png', Plugin::$file );