Skip to content

Commit

Permalink
Merge pull request #990 from mollie/PIWOO-607-add-new-payment-method-…
Browse files Browse the repository at this point in the history
…multibanco

Add new payment Method - Multibanco
  • Loading branch information
danielhuesken authored Jan 31, 2025
2 parents e7bc099 + c8b5ee1 commit 238ed00
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',
'Mollie_WC_Gateway_Paybybank',
'Mollie_WC_Gateway_Mbway',
];
Expand Down

0 comments on commit 238ed00

Please sign in to comment.