Skip to content

Commit

Permalink
Add MB Way gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuesken committed Jan 20, 2025
1 parent 2e68334 commit b893296
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/images/mbway.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions src/PaymentMethods/Mbway.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

declare(strict_types=1);

namespace Mollie\WooCommerce\PaymentMethods;

class Mbway extends AbstractPaymentMethod implements PaymentMethodI
{
public function getConfig(): array
{
return [
'id' => 'mbway',
'defaultTitle' => 'MB Way',
'settingsDescription' => '',
'defaultDescription' => '',
'paymentFields' => false,
'instructions' => false,
'supports' => [
'products',
'refunds',
],
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'docs' => 'https://www.mollie.com/gb/payments/mbway',
];
}

public function initializeTranslations(): void
{
if ($this->translationsInitialized) {
return;
}
$this->config['defaultTitle'] = __('MB Way', 'mollie-payments-for-woocommerce');
$this->translationsInitialized = true;
}

public function getFormFields($generalFormFields): array
{
return $generalFormFields;
}
}
1 change: 1 addition & 0 deletions src/Shared/SharedDataDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class SharedDataDictionary
'Mollie_WC_Gateway_Riverty',
'Mollie_WC_Gateway_Satispay',
'Mollie_WC_Gateway_Swish',
'Mollie_WC_Gateway_Mbway',
];

public const MOLLIE_OPTIONS_NAMES = [
Expand Down

0 comments on commit b893296

Please sign in to comment.