Skip to content

Commit

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

declare(strict_types=1);

namespace Mollie\WooCommerce\PaymentMethods;

class Multibanco extends AbstractPaymentMethod implements PaymentMethodI
{
protected function getConfig(): array
{
return [
'id' => 'multibanco',
'defaultTitle' => 'Multibanco',
'settingsDescription' => 'To accept payments via Multibanco',
'defaultDescription' => '',
'paymentFields' => false,
'instructions' => false,
'supports' => [
'products',
'refunds',
],
'filtersOnBuild' => false,
'confirmationDelayed' => true,
'SEPA' => false,
'docs' => '',
];
}

public function initializeTranslations(): void
{
if ($this->translationsInitialized) {
return;
}
$this->config['defaultTitle'] = __('Multibanco', 'mollie-payments-for-woocommerce');
$this->config['settingsDescription'] = __('To accept payments via Multibanco', '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_Multibanco',
];

public const MOLLIE_OPTIONS_NAMES = [
Expand Down

0 comments on commit d12cac5

Please sign in to comment.