-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Apple pay and a switch to choose between Shopware standard fail…
…ed payments or Mollie failed payments.
- Loading branch information
1 parent
a6a88f0
commit ba4438d
Showing
99 changed files
with
8,452 additions
and
378 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
|
||
namespace Kiener\MolliePayments\Event; | ||
|
||
use Mollie\Api\Resources\Order; | ||
use Shopware\Core\Checkout\Order\OrderEntity; | ||
use Shopware\Core\Framework\Context; | ||
use Symfony\Contracts\EventDispatcher\Event; | ||
|
||
class PaymentPageFailEvent extends Event | ||
{ | ||
public const EVENT_NAME = 'mollie.payment.page.fail'; | ||
|
||
/** | ||
* @var Context | ||
*/ | ||
private $context; | ||
|
||
/** | ||
* @var OrderEntity|null | ||
*/ | ||
private $shopwareOrder; | ||
|
||
/** | ||
* @var Order|null | ||
*/ | ||
private $mollieOrder; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
private $salesChannelId; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
private $redirectUrl; | ||
|
||
public function __construct( | ||
Context $context, | ||
?OrderEntity $shopwareOrder = null, | ||
?Order $mollieOrder = null, | ||
?string $salesChannelId = null, | ||
?string $redirectUrl = null | ||
) | ||
{ | ||
$this->context = $context; | ||
$this->shopwareOrder = $shopwareOrder; | ||
$this->mollieOrder = $mollieOrder; | ||
$this->salesChannelId = $salesChannelId; | ||
$this->redirectUrl = $redirectUrl; | ||
} | ||
|
||
public function getContext(): Context | ||
{ | ||
return $this->context; | ||
} | ||
|
||
public function getShopwareOrder(): ?OrderEntity | ||
{ | ||
return $this->shopwareOrder; | ||
} | ||
|
||
public function getMollieOrder(): ?Order | ||
{ | ||
return $this->mollieOrder; | ||
} | ||
|
||
public function getSalesChannelId(): ?string | ||
{ | ||
return $this->salesChannelId; | ||
} | ||
|
||
public function getRedirectUrl(): ?string | ||
{ | ||
return $this->redirectUrl; | ||
} | ||
} |
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 | ||
|
||
namespace Kiener\MolliePayments\Event; | ||
|
||
use Mollie\Api\Resources\Order; | ||
use Shopware\Core\Checkout\Order\OrderEntity; | ||
use Shopware\Core\Framework\Context; | ||
use Symfony\Contracts\EventDispatcher\Event; | ||
|
||
class PaymentPageRedirectEvent extends Event | ||
{ | ||
public const EVENT_NAME = 'mollie.payment.page.redirect'; | ||
|
||
/** | ||
* @var Context | ||
*/ | ||
private $context; | ||
|
||
/** | ||
* @var OrderEntity|null | ||
*/ | ||
private $shopwareOrder; | ||
|
||
/** | ||
* @var Order|null | ||
*/ | ||
private $mollieOrder; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
private $salesChannelId; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
private $redirectUrl; | ||
|
||
public function __construct( | ||
Context $context, | ||
?OrderEntity $shopwareOrder = null, | ||
?Order $mollieOrder = null, | ||
?string $salesChannelId = null, | ||
?string $redirectUrl = null | ||
) | ||
{ | ||
$this->context = $context; | ||
$this->shopwareOrder = $shopwareOrder; | ||
$this->mollieOrder = $mollieOrder; | ||
$this->salesChannelId = $salesChannelId; | ||
$this->redirectUrl = $redirectUrl; | ||
} | ||
|
||
public function getContext(): Context | ||
{ | ||
return $this->context; | ||
} | ||
|
||
public function getShopwareOrder(): ?OrderEntity | ||
{ | ||
return $this->shopwareOrder; | ||
} | ||
|
||
public function getMollieOrder(): ?Order | ||
{ | ||
return $this->mollieOrder; | ||
} | ||
|
||
public function getSalesChannelId(): ?string | ||
{ | ||
return $this->salesChannelId; | ||
} | ||
|
||
public function getRedirectUrl(): ?string | ||
{ | ||
return $this->redirectUrl; | ||
} | ||
} |
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
Oops, something went wrong.