Skip to content

Commit

Permalink
NTR: PISHPS-379: enable trustly for subscriptions (#899)
Browse files Browse the repository at this point in the history
Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik authored Nov 27, 2024
1 parent 5e6b7b1 commit 6aa03a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

namespace Kiener\MolliePayments\Components\Subscription\Services\PaymentMethodRemover;

use Kiener\MolliePayments\Handler\Method\BanContactPayment;
use Kiener\MolliePayments\Handler\Method\BelfiusPayment;
use Kiener\MolliePayments\Handler\Method\CreditCardPayment;
use Kiener\MolliePayments\Handler\Method\DirectDebitPayment;
use Kiener\MolliePayments\Handler\Method\EpsPayment;
use Kiener\MolliePayments\Handler\Method\GiroPayPayment;
use Kiener\MolliePayments\Handler\Method\iDealPayment;
use Kiener\MolliePayments\Handler\Method\PayPalPayment;
use Kiener\MolliePayments\Handler\Method\SofortPayment;
use Kiener\MolliePayments\Handler\Method\TrustlyPayment;
use Kiener\MolliePayments\Service\MollieApi\OrderItemsExtractor;
use Kiener\MolliePayments\Service\OrderService;
use Kiener\MolliePayments\Service\Payment\Remover\PaymentMethodRemover;
Expand All @@ -16,15 +26,16 @@
class SubscriptionRemover extends PaymentMethodRemover
{
public const ALLOWED_METHODS = [
'ideal',
'bancontact',
'sofort',
'eps',
'giropay',
'belfius',
'creditcard',
'paypal',
'directdebit',
iDealPayment::PAYMENT_METHOD_NAME,
BanContactPayment::PAYMENT_METHOD_NAME,
SofortPayment::PAYMENT_METHOD_NAME,
EpsPayment::PAYMENT_METHOD_NAME,
GiroPayPayment::PAYMENT_METHOD_NAME,
BelfiusPayment::PAYMENT_METHOD_NAME,
CreditCardPayment::PAYMENT_METHOD_NAME,
PaypalPayment::PAYMENT_METHOD_NAME,
DirectDebitPayment::PAYMENT_METHOD_NAME,
TrustlyPayment::PAYMENT_METHOD_NAME
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function testAllowedPaymentMethods()
'creditcard',
'paypal',
'directdebit',
'trustly'
];

$this->assertEquals($expected, SubscriptionRemover::ALLOWED_METHODS);
Expand Down

0 comments on commit 6aa03a9

Please sign in to comment.