File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
app/code/Magento/Paypal/Controller/Transparent Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Paypal \Controller \Transparent ;
7
7
8
+ use Magento \Framework \App \CsrfAwareActionInterface ;
8
9
use Magento \Framework \Registry ;
9
10
use Magento \Framework \App \Action \Context ;
10
11
use Magento \Framework \View \Result \LayoutFactory ;
16
17
use Magento \Paypal \Model \Payflow \Transparent ;
17
18
use Magento \Sales \Api \PaymentFailuresInterface ;
18
19
use Magento \Framework \Session \Generic as Session ;
20
+ use Magento \Framework \App \RequestInterface ;
21
+ use Magento \Framework \App \Request \InvalidRequestException ;
19
22
20
23
/**
21
24
* Class Response
22
25
*/
23
- class Response extends \Magento \Framework \App \Action \Action
26
+ class Response extends \Magento \Framework \App \Action \Action implements CsrfAwareActionInterface
24
27
{
25
28
/**
26
29
* Core registry
@@ -91,6 +94,23 @@ public function __construct(
91
94
$ this ->paymentFailures = $ paymentFailures ?: $ this ->_objectManager ->get (PaymentFailuresInterface::class);
92
95
}
93
96
97
+ /**
98
+ * @inheritDoc
99
+ */
100
+ public function createCsrfValidationException (
101
+ RequestInterface $ request
102
+ ): ?InvalidRequestException {
103
+ return null ;
104
+ }
105
+
106
+ /**
107
+ * @inheritDoc
108
+ */
109
+ public function validateForCsrf (RequestInterface $ request ): ?bool
110
+ {
111
+ return true ;
112
+ }
113
+
94
114
/**
95
115
* @return ResultInterface
96
116
*/
You can’t perform that action at this time.
0 commit comments