Skip to content

Commit c221853

Browse files
committed
Remove PaymentMethodAdditionalDataInput From PaypalGraphQl
1 parent 887f33b commit c221853

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/PaypalGraphQl/Model/Plugin/Resolver/SetPaymentMethodOnCart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SetPaymentMethodOnCart
2525
{
2626
private const PATH_CODE = 'input/payment_method/code';
2727

28-
private const PATH_ADDITIONAL_DATA = 'input/payment_method/additional_data';
28+
private const PATH_PAYMENT_METHOD_DATA = 'input/payment_method';
2929

3030
private $allowedPaymentMethodCodes = [];
3131

@@ -98,7 +98,7 @@ public function afterResolve(
9898
return $resolvedValue;
9999
}
100100

101-
$paypalAdditionalData = $this->arrayManager->get(self::PATH_ADDITIONAL_DATA, $args) ?? [];
101+
$paypalAdditionalData = $this->arrayManager->get(self::PATH_PAYMENT_METHOD_DATA, $args) ?? [];
102102
$payerId = $paypalAdditionalData[$paymentCode]['payer_id'] ?? null;
103103
$token = $paypalAdditionalData[$paymentCode]['token'] ?? null;
104104
$cart = $resolvedValue['cart']['model'];

app/code/Magento/PaypalGraphQl/etc/schema.graphqls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type PayflowLinkToken {
3131
paypal_url: String @doc(description:"PayPal URL used for requesting Payflow form")
3232
}
3333

34-
input PaymentMethodAdditionalDataInput {
34+
input PaymentMethodInput {
3535
paypal_express: PaypalExpressInput @doc(description:"Required input for PayPal Express Checkout payments")
3636
payflow_express: PayflowExpressInput @doc(description:"Required input for PayPal Payflow Express Checkout payments")
3737
payflow_link: PayflowLinkAdditionalDataInput @doc(description:"Required input for PayPal Payflow Link payments")

0 commit comments

Comments
 (0)