File tree 1 file changed +3
-3
lines changed
app/code/Magento/PaypalGraphQl/Model/Resolver 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ public function resolve(
126
126
$ this ->parameters ->fromString (urldecode ($ paypalPayload ));
127
127
$ data = $ this ->parameters ->toArray ();
128
128
try {
129
- $ do = $ this ->dataObjectFactory -> create ([ ' data ' => array_change_key_case ( $ data, CASE_LOWER )] );
130
- $ this ->responseValidator ->validate ($ do , $ this ->transparent );
131
- $ this ->transaction ->savePaymentInQuote ($ do , $ cart ->getId ());
129
+ $ response = $ this ->transaction -> getResponseObject ( $ data );
130
+ $ this ->responseValidator ->validate ($ response , $ this ->transparent );
131
+ $ this ->transaction ->savePaymentInQuote ($ response , $ cart ->getId ());
132
132
} catch (LocalizedException $ exception ) {
133
133
$ parameters ['error ' ] = true ;
134
134
$ parameters ['error_msg ' ] = $ exception ->getMessage ();
You can’t perform that action at this time.
0 commit comments