Skip to content

Commit 1664427

Browse files
netzstrategencreative-andrew
authored andcommitted
fix: paysier php critical error method called on null
1 parent 9b5168e commit 1664427

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From bac4c245724417f900b9a925e5ed43f6a351addb Mon Sep 17 00:00:00 2001
2+
From: creative-andrew <[email protected]>
3+
Date: Tue, 18 Jun 2024 13:15:25 +0200
4+
Subject: [PATCH] fix: critical error on paysier plugin
5+
6+
---
7+
Payment/Paysier.php | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/Payment/Paysier.php b/Payment/Paysier.php
11+
index 46a0e70b31..bda66f4b14 100644
12+
--- a/Payment/Paysier.php
13+
+++ b/Payment/Paysier.php
14+
@@ -431,7 +431,7 @@ function add_paysier_payment_method() {
15+
*/
16+
public function checkout_get_value($value, $index)
17+
{
18+
- $data = WC()->session->get('pscc_post_data');
19+
+ $data = WC()?->session?->get('pscc_post_data');
20+
return isset($data[$index]) ? $data[$index] : $value;
21+
}
22+
23+
--
24+
2.24.4
25+

0 commit comments

Comments
 (0)