Skip to content

Commit 8d5a250

Browse files
author
Viktor Tymchynskyi
committed
MAGETWO-32931: Accepting and Rejecting Transactions Marked as "Held for Review" by Gateway
- Code review fixes
1 parent bc22f4c commit 8d5a250

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/Magento/Payment/Model/Method/Adapter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ public function order(InfoInterface $payment, $amount)
366366
$payment,
367367
['amount' => $amount]
368368
);
369+
369370
return $this;
370371
}
371372

@@ -379,6 +380,7 @@ public function authorize(InfoInterface $payment, $amount)
379380
$payment,
380381
['amount' => $amount]
381382
);
383+
382384
return $this;
383385
}
384386

@@ -406,6 +408,7 @@ public function refund(InfoInterface $payment, $amount)
406408
$payment,
407409
['amount' => $amount]
408410
);
411+
409412
return $this;
410413
}
411414

@@ -418,6 +421,7 @@ public function cancel(InfoInterface $payment)
418421
'cancel',
419422
$payment
420423
);
424+
421425
return $this;
422426
}
423427

@@ -430,6 +434,7 @@ public function void(InfoInterface $payment)
430434
'void',
431435
$payment
432436
);
437+
433438
return $this;
434439
}
435440

@@ -442,6 +447,7 @@ public function acceptPayment(InfoInterface $payment)
442447
'accept_payment',
443448
$payment
444449
);
450+
445451
return $this;
446452
}
447453

@@ -454,6 +460,7 @@ public function denyPayment(InfoInterface $payment)
454460
'deny_payment',
455461
$payment
456462
);
463+
457464
return $this;
458465
}
459466

app/code/Magento/Sales/Model/Order/Payment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ public function deny($isOnline = true)
10181018
/** @var \Magento\Payment\Model\Method\AbstractMethod $method */
10191019
$method = $this->getMethodInstance();
10201020
$method->setStore($this->getOrder()->getStoreId());
1021+
10211022
$result = $method->denyPayment($this);
10221023
} else {
10231024
$result = (bool)$this->getNotificationResult();

0 commit comments

Comments
 (0)