File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
view/frontend/web/js/in-context Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -114,17 +114,11 @@ public function __construct(
114
114
public function execute (): ResultInterface
115
115
{
116
116
$ controllerResult = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
117
- $ quoteId = $ this ->getRequest ()->getParam ('quoteId ' );
118
117
$ payerId = $ this ->getRequest ()->getParam ('payerId ' );
119
118
$ tokenId = $ this ->getRequest ()->getParam ('paymentToken ' );
120
- $ customerId = $ this ->getRequest ()->getParam ('customerId ' ) ?: $ this ->_customerSession ->getId ();
121
119
122
120
try {
123
- if ($ quoteId ) {
124
- $ quote = $ customerId ? $ this ->cartRepository ->get ($ quoteId ) : $ this ->guestCartRepository ->get ($ quoteId );
125
- } else {
126
- $ quote = $ this ->_getQuote ();
127
- }
121
+ $ quote = $ this ->_getQuote ();
128
122
129
123
$ responseContent = [
130
124
'success ' => true ,
Original file line number Diff line number Diff line change 37
37
<value id =" www_pilot_payflowlink_paypal" type =" host" >pilot-payflowlink.paypal.com</value >
38
38
</values >
39
39
</policy >
40
+ <policy id =" connect-src" >
41
+ <values >
42
+ <value id =" www_sandbox_paypal_com" type =" host" >www.sandbox.paypal.com</value >
43
+ </values >
44
+ </policy >
40
45
</policies >
41
46
</csp_whitelist >
Original file line number Diff line number Diff line change @@ -47,8 +47,6 @@ define([
47
47
var params = {
48
48
paymentToken : data . orderID ,
49
49
payerId : data . payerID ,
50
- quoteId : clientConfig . quoteId || '' ,
51
- customerId : clientConfig . customerId || '' ,
52
50
'form_key' : clientConfig . formKey
53
51
} ;
54
52
You can’t perform that action at this time.
0 commit comments