-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e68334
commit d12cac5
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters