@@ -38,27 +38,27 @@ public function getRedirectData()
38
38
39
39
public function getTransactionId ()
40
40
{
41
- return $ this ->data ['transactionId ' ];
41
+ return $ this ->data ['transactionId ' ] ?? null ;
42
42
}
43
43
44
44
public function getTenders ()
45
45
{
46
- return $ this ->data ['tenders ' ];
46
+ return $ this ->data ['tenders ' ] ?? null ;
47
47
}
48
48
49
49
public function getOrderId ()
50
50
{
51
- return $ this ->data ['orderId ' ];
51
+ return $ this ->data ['orderId ' ] ?? null ;
52
52
}
53
53
54
54
public function getCreatedAt ()
55
55
{
56
- return $ this ->data ['created_at ' ];
56
+ return $ this ->data ['created_at ' ] ?? null ;
57
57
}
58
58
59
59
public function getReferenceId ()
60
60
{
61
- return $ this ->data ['referenceId ' ];
61
+ return $ this ->data ['referenceId ' ] ?? null ;
62
62
}
63
63
64
64
public function getMessage ()
@@ -68,7 +68,7 @@ public function getMessage()
68
68
$ message .= $ this ->data ['code ' ] . ': ' ;
69
69
}
70
70
71
- return $ message . ($ this ->data ['error ' ] ?? '' );
71
+ return $ message . ($ this ->data ['detail ' ] ?? '' );
72
72
}
73
73
74
74
/**
@@ -84,10 +84,10 @@ public function getTransactionReference()
84
84
/**
85
85
* Get the tender id that is used for processing refunds
86
86
*
87
- * @return string
87
+ * @return null| string
88
88
*/
89
89
public function getBillingId ()
90
90
{
91
- return $ this ->getTenders ()[0 ]['id ' ];
91
+ return $ this ->getTenders ()[0 ]['id ' ] ?? null ;
92
92
}
93
93
}
0 commit comments