Skip to content

Commit

Permalink
Fixed merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
L3RAZ committed Sep 11, 2024
1 parent 9b40a55 commit 126ec5b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions controllers/front/applepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Ps_CheckoutApplepayModuleFrontController extends AbstractFrontController
public function postProcess()
{
try {
$bodyValues = [];
$action = '';
$bodyContent = file_get_contents('php://input');

if (!empty($bodyContent)) {
Expand All @@ -65,7 +65,7 @@ public function postProcess()

switch ($action) {
case 'getPaymentRequest':
$this->getPaymentRequest($bodyValues);
$this->getPaymentRequest();
break;
case 'getDomainAssociation':
/**
Expand All @@ -84,18 +84,13 @@ public function postProcess()
}
echo file_get_contents($associationFile);
exit;
} else {
$this->exitWithExceptionMessage(new Exception('File not found', 404));
}
$this->exitWithExceptionMessage(new Exception('Invalid request', 400));
break;
default:
$this->exitWithExceptionMessage(new Exception('Invalid request', 400));
}
if ($action === 'getPaymentRequest') {
$this->getPaymentRequest();
} else {
$exception = new Exception('Invalid request', 400);
$this->exitWithExceptionMessage($exception);
}
} catch (Exception $exception) {
$this->exitWithExceptionMessage($exception);
}
Expand Down

0 comments on commit 126ec5b

Please sign in to comment.