File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
app/code/Magento/Paypal/view/frontend/web/js/action Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ define([
17
17
return function ( messageContainer ) {
18
18
var serviceUrl ,
19
19
payload ,
20
- method = 'put' ,
21
20
paymentData = quote . paymentMethod ( ) ;
22
21
23
22
/**
@@ -32,17 +31,16 @@ define([
32
31
email : quote . guestEmail ,
33
32
paymentMethod : paymentData
34
33
} ;
35
- method = 'post' ;
36
34
} else {
37
- serviceUrl = urlBuilder . createUrl ( '/carts/mine/selected -payment-method ' , { } ) ;
35
+ serviceUrl = urlBuilder . createUrl ( '/carts/mine/set -payment-information ' , { } ) ;
38
36
payload = {
39
37
cartId : quote . getQuoteId ( ) ,
40
- method : paymentData
38
+ paymentMethod : paymentData
41
39
} ;
42
40
}
43
41
fullScreenLoader . startLoader ( ) ;
44
42
45
- return storage [ method ] (
43
+ return storage . post (
46
44
serviceUrl , JSON . stringify ( payload )
47
45
) . fail ( function ( response ) {
48
46
errorProcessor . process ( response , messageContainer ) ;
You can’t perform that action at this time.
0 commit comments