-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Online Banking Finland payment method
ISSUE: ADCRSET21I-4
- Loading branch information
1 parent
4e533f9
commit 613fc6a
Showing
8 changed files
with
165 additions
and
46 deletions.
There are no files selected for viewing
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
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
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,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Adyen\Shopware\Handlers; | ||
|
||
class OnlineBankingFinlandPaymentMethodHandler extends AbstractPaymentMethodHandler | ||
{ | ||
public static function getPaymentMethodCode() | ||
{ | ||
return 'ebanking_FI'; | ||
} | ||
} |
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,78 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Adyen\Shopware\PaymentMethods; | ||
|
||
use Adyen\Shopware\Handlers\OnlineBankingFinlandPaymentMethodHandler; | ||
|
||
class OnlineBankingFinlandPaymentMethod implements PaymentMethodInterface | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getName(): string | ||
{ | ||
return 'Online Banking Finland'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getDescription(): string | ||
{ | ||
return 'Online Banking Finland'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getPaymentHandler(): string | ||
{ | ||
return OnlineBankingFinlandPaymentMethodHandler::class; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getGatewayCode(): string | ||
{ | ||
return 'ADYEN_EBANKING_FI'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string|null | ||
*/ | ||
public function getTemplate(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getLogo(): string | ||
{ | ||
return 'ebanking_FI.png'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getType(): string | ||
{ | ||
return 'redirect'; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/Resources/app/storefront/dist/storefront/js/adyen-payment-shopware6.js
Large diffs are not rendered by default.
Oops, something went wrong.
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
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