-
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.
[ECP-9277-v3] Add support for Billie Payment Method (#519)
* [ECP-9277-v3] Billie basic structure - added payment method class, payment method handler, service injection, readme update etc. * [ECP-9277-v3] Added empty lines at the end of files, moved billie installation to plugin version 3.16.0 * [ECP-9277-v3] Remove extra line * [ECP-9277-v3] Update gateway code --------- Co-authored-by: sushmita <[email protected]>
- Loading branch information
1 parent
00dd37b
commit ca3b08f
Showing
7 changed files
with
154 additions
and
3 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,37 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* ###### | ||
* ###### | ||
* ############ ####( ###### #####. ###### ############ ############ | ||
* ############# #####( ###### #####. ###### ############# ############# | ||
* ###### #####( ###### #####. ###### ##### ###### ##### ###### | ||
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### | ||
* ###### ###### #####( ###### #####. ###### ##### ##### ###### | ||
* ############# ############# ############# ############# ##### ###### | ||
* ############ ############ ############# ############ ##### ###### | ||
* ###### | ||
* ############# | ||
* ############ | ||
* | ||
* Adyen Payment Module | ||
* | ||
* Copyright (c) 2021 Adyen B.V. | ||
* This file is open source and available under the MIT license. | ||
* See the LICENSE file for more info. | ||
* | ||
* Author: Adyen <[email protected]> | ||
*/ | ||
|
||
namespace Adyen\Shopware\Handlers; | ||
|
||
class BilliePaymentMethodHandler extends AbstractPaymentMethodHandler | ||
{ | ||
public static bool $isOpenInvoice = true; | ||
public static bool $supportsManualCapture = true; | ||
public static bool $supportsPartialCapture = true; | ||
|
||
public static function getPaymentMethodCode() | ||
{ | ||
return 'klarna_b2b'; | ||
} | ||
} |
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,87 @@ | ||
<?php declare(strict_types=1); | ||
/** | ||
* ###### | ||
* ###### | ||
* ############ ####( ###### #####. ###### ############ ############ | ||
* ############# #####( ###### #####. ###### ############# ############# | ||
* ###### #####( ###### #####. ###### ##### ###### ##### ###### | ||
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### | ||
* ###### ###### #####( ###### #####. ###### ##### ##### ###### | ||
* ############# ############# ############# ############# ##### ###### | ||
* ############ ############ ############# ############ ##### ###### | ||
* ###### | ||
* ############# | ||
* ############ | ||
* | ||
* Adyen Payment Module | ||
* | ||
* Copyright (c) 2021 Adyen B.V. | ||
* This file is open source and available under the MIT license. | ||
* See the LICENSE file for more info. | ||
* | ||
* Author: Adyen <[email protected]> | ||
*/ | ||
|
||
namespace Adyen\Shopware\PaymentMethods; | ||
|
||
use Adyen\Shopware\Handlers\BilliePaymentMethodHandler; | ||
|
||
class BilliePaymentMethod implements PaymentMethodInterface | ||
{ | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getName(): string | ||
{ | ||
return 'Billie'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getDescription(): string | ||
{ | ||
return 'Buy Now Pay Later with Billie'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getPaymentHandler(): string | ||
{ | ||
return BilliePaymentMethodHandler::class; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getGatewayCode(): string | ||
{ | ||
return 'ADYEN_KLARNA_B2B'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getTemplate(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getLogo(): string | ||
{ | ||
return 'billie.png'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
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
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