-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from buckaroo-it/BP-3629-Add-payment-method-B…
…lik-Shopware-6 Blik payment
- Loading branch information
Showing
9 changed files
with
172 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Buckaroo\Shopware6\Handlers; | ||
|
||
use Buckaroo\Shopware6\PaymentMethods\Blik; | ||
|
||
class BlikPaymentHandler extends AsyncPaymentHandler | ||
{ | ||
protected string $paymentClass = Blik::class; | ||
} |
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,77 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Buckaroo\Shopware6\PaymentMethods; | ||
|
||
use Buckaroo\Shopware6\Handlers\BlikPaymentHandler; | ||
|
||
class Blik extends AbstractPayment | ||
{ | ||
/* | ||
* @return string | ||
*/ | ||
public function getBuckarooKey(): string | ||
{ | ||
return 'blik'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getName(): string | ||
{ | ||
return 'Buckaroo Blik'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getDescription(): string | ||
{ | ||
return 'Pay with Blik'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getMedia(): string | ||
{ | ||
return __DIR__ . '/../Resources/views/storefront/buckaroo/payments/blik.svg'; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return string | ||
*/ | ||
public function getPaymentHandler(): string | ||
{ | ||
return BlikPaymentHandler::class; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @return array<mixed> | ||
*/ | ||
public function getTranslations(): array | ||
{ | ||
return [ | ||
'de-DE' => [ | ||
'name' => $this->getName(), | ||
'description' => 'Bezahlen mit PayPerEmail', | ||
], | ||
'en-GB' => [ | ||
'name' => $this->getName(), | ||
'description' => $this->getDescription(), | ||
], | ||
]; | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
src/Resources/app/storefront/dist/storefront/js/buckaroo-payments/buckaroo-payments.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
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