Skip to content

Commit

Permalink
Add satispay method
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Aug 21, 2024
1 parent a02dfdc commit 6bacfd8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/images/satispay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/PaymentMethods/Satispay.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

declare(strict_types=1);

namespace Mollie\WooCommerce\PaymentMethods;

class Satispay extends AbstractPaymentMethod implements PaymentMethodI
{
protected function getConfig(): array
{
return [
'id' => 'satispay',
'defaultTitle' => __('Satispay', 'mollie-payments-for-woocommerce'),
'settingsDescription' => '',
'defaultDescription' => '',
'paymentFields' => false,
'instructions' => false,
'supports' => ['products', 'refunds'],
'filtersOnBuild' => false,
'confirmationDelayed' => false,
'SEPA' => false,
];
}

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 @@ -38,6 +38,7 @@ class SharedDataDictionary
'Mollie_WC_Gateway_Trustly',
'Mollie_WC_Gateway_Payconiq',
'Mollie_WC_Gateway_Riverty',
'Mollie_WC_Gateway_Satispay',
];

public const MOLLIE_OPTIONS_NAMES = [
Expand Down

0 comments on commit 6bacfd8

Please sign in to comment.