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(
114114 public function execute (): ResultInterface
115115 {
116116 $ controllerResult = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
117- $ quoteId = $ this ->getRequest ()->getParam ('quoteId ' );
118117 $ payerId = $ this ->getRequest ()->getParam ('payerId ' );
119118 $ tokenId = $ this ->getRequest ()->getParam ('paymentToken ' );
120- $ customerId = $ this ->getRequest ()->getParam ('customerId ' ) ?: $ this ->_customerSession ->getId ();
121119
122120 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 ();
128122
129123 $ responseContent = [
130124 'success ' => true ,
Original file line number Diff line number Diff line change 3737 <value id =" www_pilot_payflowlink_paypal" type =" host" >pilot-payflowlink.paypal.com</value >
3838 </values >
3939 </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 >
4045 </policies >
4146</csp_whitelist >
Original file line number Diff line number Diff line change @@ -47,8 +47,6 @@ define([
4747 var params = {
4848 paymentToken : data . orderID ,
4949 payerId : data . payerID ,
50- quoteId : clientConfig . quoteId || '' ,
51- customerId : clientConfig . customerId || '' ,
5250 'form_key' : clientConfig . formKey
5351 } ;
5452
You can’t perform that action at this time.
0 commit comments