# payplug/3.1.0/src/Gateway/PPRO/Mybank.php

PayPlug for WooCommerce (Official), version 3.1.0. 39 lines.

- Page: https://pluginprobe.com/plugins/payplug/3.1.0/code/src/Gateway/PPRO/Mybank.php
- Raw: https://pluginprobe.com/plugins/payplug/3.1.0/raw/src/Gateway/PPRO/Mybank.php
- Modified: 2026-09-25T08:27:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/payplug/3.1.0/code/src/Gateway/PPRO/Mybank.php#L10-L20`.

```php
<?php

namespace Payplug\PayplugWoocommerce\Gateway\PPRO;

use Payplug\PayplugWoocommerce\Controller\PayplugGenericGateway;

class Mybank extends PayplugGenericGateway
{
    protected $min_thresholds;
    protected $max_thresholds;
    protected $allowed_country_codes = [];
    protected $enable_refund = true;
    public const ENABLE_ON_TEST_MODE = false;

    public function __construct()
    {
        parent::__construct();

        //since we're calling the parent construct we need to redefine the payment properties
        //once we detach the cc from default payment method, this will be no longer needed
        $this->id = 'mybank';
        $this->method_title = __('pay_with_mybank', 'payplug');
        $this->title = __('pay_with_mybank', 'payplug');
        $this->method_description = '';
        $this->description = '';
        $this->image = 'mybank.svg';

        //WOOCO FIELDS
        $this->has_fields = false;
        $this->enabled = 'yes';

        if (!$this->checkGateway()) {
            $this->enabled = 'no';
        }

        add_action('woocommerce_order_item_add_action_buttons', [$this, 'refund_not_available']);
    }
}

```
