Skip to content

Commit 6ad76bc

Browse files
committed
MAGETWO-90106: Paypal cannot place the order when Payment Action = Order
1 parent a21665e commit 6ad76bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Paypal/Plugin/ValidatorCanInvoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(Express $express)
4343
* @throws LocalizedException
4444
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4545
*/
46-
public function afterValidate(CanInvoice $subject, bool $result, OrderInterface $order): array
46+
public function afterValidate(CanInvoice $subject, array $result, OrderInterface $order): array
4747
{
4848
if ($this->express->isOrderAuthorizationAllowed($order->getPayment())) {
4949
$result[] = __('An invoice cannot be created when none of authorization transactions available.');

0 commit comments

Comments
 (0)