-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ECP-9277] Add Support for Billie payment method (#517)
* [ECP-9277] Basic structure for Billie * [ECP-9277] Fixed typo in dependency injection * [ECP-9277] Updated Readme to add Billie as payment method * [ECP-9277] Updated parameters in BilliePaymentMethodHandler * [ECP-9277] Remove accidently added spaces * [ECP-9277] Update to gateway code, payment method list in updatableComponents, frontend js files, plugin installation as part of version 3.15.0 and above * [ECP-9277] Correct indentation on foreach * [ECP-9277] Few more indentation correction * [ECP-9277] Added empty lines at the end of files, moved billie installation to plugin version 3.16.0 * [ECP-9277] update the gateway code * [ECP-9277] update frontend after pulling from develop * [ECP-9277] update version to 4.0.0 * [ECP-9277] update version to 4.1.0 --------- Co-authored-by: sushmita <[email protected]>
- Loading branch information
1 parent
2fc9de1
commit 3a296d0
Showing
8 changed files
with
157 additions
and
6 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
2 changes: 1 addition & 1 deletion
2
...rces/app/storefront/dist/storefront/js/adyen-payment-shopware6/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