File tree 2 files changed +3
-3
lines changed
app/code/Magento/PaypalGraphQl
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class SetPaymentMethodOnCart
25
25
{
26
26
private const PATH_CODE = 'input/payment_method/code ' ;
27
27
28
- private const PATH_ADDITIONAL_DATA = 'input/payment_method/additional_data ' ;
28
+ private const PATH_PAYMENT_METHOD_DATA = 'input/payment_method ' ;
29
29
30
30
private $ allowedPaymentMethodCodes = [];
31
31
@@ -98,7 +98,7 @@ public function afterResolve(
98
98
return $ resolvedValue ;
99
99
}
100
100
101
- $ paypalAdditionalData = $ this ->arrayManager ->get (self ::PATH_ADDITIONAL_DATA , $ args ) ?? [];
101
+ $ paypalAdditionalData = $ this ->arrayManager ->get (self ::PATH_PAYMENT_METHOD_DATA , $ args ) ?? [];
102
102
$ payerId = $ paypalAdditionalData [$ paymentCode ]['payer_id ' ] ?? null ;
103
103
$ token = $ paypalAdditionalData [$ paymentCode ]['token ' ] ?? null ;
104
104
$ cart = $ resolvedValue ['cart ' ]['model ' ];
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ type PayflowLinkToken {
31
31
paypal_url : String @doc (description :"PayPal URL used for requesting Payflow form" )
32
32
}
33
33
34
- input PaymentMethodAdditionalDataInput {
34
+ input PaymentMethodInput {
35
35
paypal_express : PaypalExpressInput @doc (description :"Required input for PayPal Express Checkout payments" )
36
36
payflow_express : PayflowExpressInput @doc (description :"Required input for PayPal Payflow Express Checkout payments" )
37
37
payflow_link : PayflowLinkAdditionalDataInput @doc (description :"Required input for PayPal Payflow Link payments" )
You can’t perform that action at this time.
0 commit comments