Skip to content

Commit 7f4add2

Browse files
author
Prabhu Ram
committed
MC-16073: POC to process a payment using Authorize.net method
- fixing static failures
1 parent e6408af commit 7f4add2

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/SetPaymentMethodOnCart.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,14 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
8484
$additionalData = $this->additionalDataProviderPool->getData($paymentMethodCode, $args) ?? [];
8585

8686
$cart = $this->getCartForUser->execute($maskedCartId, $context->getUserId());
87-
$payment = $this->paymentFactory->create([
87+
$payment = $this->paymentFactory->create(
88+
[
8889
'data' => [
8990
PaymentInterface::KEY_METHOD => $paymentMethodCode,
9091
PaymentInterface::KEY_PO_NUMBER => $poNumber,
9192
PaymentInterface::KEY_ADDITIONAL_DATA => $additionalData,
92-
]
93-
]);
93+
]]
94+
);
9495

9596
try {
9697
$this->paymentMethodManagement->set($cart->getId(), $payment);

dev/tests/integration/testsuite/Magento/GraphQl/Quote/Customer/SetAuthorizeNetPaymentMethodOnCartTest.php renamed to dev/tests/integration/testsuite/Magento/GraphQl/Quote/Customer/SetAuthorizenetPaymentMethodOnCustomerCartTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ class SetAuthorizenetPaymentMethodOnCustomerCartTest extends \Magento\TestFramew
3737
/** @var CustomerTokenServiceInterface */
3838
private $customerTokenService;
3939

40-
/**
41-
* @var \Magento\Framework\App\Cache */
42-
private $appCache;
43-
4440
/** @var Http */
4541
private $request;
4642

0 commit comments

Comments
 (0)