Skip to content

Commit

Permalink
applePay browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jun 21, 2024
1 parent 0ce1715 commit c8a9566
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Model/MethodListPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class MethodListPlugin
/** @var TpayInterface */
protected $paymentMethod;

/** @var Request */
protected $request;

/** @var Data */
private $data;

Expand All @@ -45,9 +48,6 @@ class MethodListPlugin
/** @var ConstraintValidator */
private $constraintValidator;

/** @var Request */
protected $request;

public function __construct(
Data $data,
ScopeConfigInterface $scopeConfig,
Expand Down Expand Up @@ -173,7 +173,8 @@ private function getBrowser(): string

if (strpos($userAgent, 'Chrome')) {
return 'Chrome';
} elseif (strpos($userAgent, 'Safari')) {
}
if (strpos($userAgent, 'Safari')) {
return 'Safari';
}

Expand Down

0 comments on commit c8a9566

Please sign in to comment.