File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ public function execute(): ResultInterface
126
126
$ quote = $ this ->_getQuote ();
127
127
}
128
128
129
+ if ($ customerId != null && ($ quote ->getCustomerIsGuest () || $ customerId !== $ quote ->getCustomerId ())) {
130
+ throw new LocalizedException (__ ('Sorry, but something went wrong. ' ));
131
+ }
132
+
129
133
$ responseContent = [
130
134
'success ' => true ,
131
135
'error_message ' => '' ,
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 >
You can’t perform that action at this time.
0 commit comments