Skip to content

Commit

Permalink
Apple payment method not listed when not on apple machine
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Sosnowski committed Nov 15, 2024
1 parent cc662ea commit 4c2f1a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Controller/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ public function getPaymentList()
* - country
*/
foreach ($paymentListRaw as $key => $payment) {
if(
$payment->getId() === 'oscadyenapplepay' &&
(stripos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'Apple') !== false)
){
continue;
}

if (
!isset($adyenDef[$key]) ||
(
Expand Down

0 comments on commit 4c2f1a2

Please sign in to comment.