Skip to content

Commit

Permalink
Merge pull request #481 from Invertus/fixed-review-issues
Browse files Browse the repository at this point in the history
fixed review issues
  • Loading branch information
margud authored Dec 2, 2021
2 parents f595c8e + 9f0c4c9 commit f54ebe5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion controllers/front/webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ protected function executeWebhook()
if (!$this->module->api) {
return 'API key is missing or incorrect';
}

try {
if (TransactionUtility::isOrderTransaction($transactionId)) {
$payment = $transactionService->processTransaction($this->module->api->orders->get($transactionId, ['embed' => 'payments']));
Expand Down
2 changes: 1 addition & 1 deletion src/Handler/Order/OrderCreationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function createOrder($apiPayment, $cartId, $isKlarnaOrder = false)

$this->module->validateOrder(
(int) $cartId,
(int) Configuration::get(Mollie\Config\Config::MOLLIE_STATUS_OPEN),
(int) Configuration::get(Mollie\Config\Config::MOLLIE_STATUS_AWAITING),
(float) $apiPayment->amount->value,
isset(Config::$methods[$apiPayment->method]) ? Config::$methods[$apiPayment->method] : $this->module->name,
null,
Expand Down
2 changes: 2 additions & 0 deletions src/Service/ApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ public function getMethodsForConfig(MollieApiClient $api, $path)

private function getMethodsObjForConfig($apiMethods)
{
$this->environment = (int) $this->configurationAdapter->get(Config::MOLLIE_ENVIRONMENT);

$methods = [];
$defaultPaymentMethod = new MolPaymentMethod();
$defaultPaymentMethod->enabled = false;
Expand Down

0 comments on commit f54ebe5

Please sign in to comment.