-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PayonePayment\Components\ApplePay\Controller; | ||
|
||
use PayonePayment\Components\ApplePay\StoreApi\Route\AbstractApplePayRoute; | ||
use Shopware\Core\System\SalesChannel\SalesChannelContext; | ||
use Symfony\Component\HttpFoundation\Request; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Component\Routing\Attribute\Route; | ||
|
||
#[Route( | ||
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 5.7
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 8.0
Check failure on line 13 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 8.0
|
||
path: '/payone/apple-pay/', | ||
options: ['seo' => false], | ||
defaults: [ | ||
'XmlHttpRequest' => true, | ||
'_routeScope' => ['storefront'], | ||
'_loginRequired' => true, | ||
'_loginRequiredAllowGuest' => true, | ||
], | ||
)] | ||
class CheckoutController | ||
{ | ||
public function __construct( | ||
private readonly AbstractApplePayRoute $route | ||
) { | ||
} | ||
|
||
#[Route(path: 'validate-merchant', name: 'frontend.payone.apple-pay.validate-merchant', methods: ['POST'])] | ||
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 5.7
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 8.0
Check failure on line 30 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 8.0
|
||
public function validateMerchant(Request $request, SalesChannelContext $salesChannelContext): Response | ||
{ | ||
return $this->route->validateMerchant($request, $salesChannelContext); | ||
} | ||
|
||
#[Route(path: 'process-payment', name: 'frontend.payone.apple-pay.process-payment', methods: ['POST'])] | ||
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.7.3, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 5.7
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 8.0
Check failure on line 36 in src/Components/ApplePay/Controller/CheckoutController.php GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 8.0
|
||
public function processPayment(Request $request, SalesChannelContext $salesChannelContext): Response | ||
{ | ||
return $this->route->process($request, $salesChannelContext); | ||
} | ||
} |