@@ -14,66 +14,17 @@ class AcceptNotificationRequest extends AbstractRequest implements NotificationI
1414 use HasFlashPay;
1515 use HasDecode;
1616
17- /**
18- * @param string $value
19- * @return AcceptNotificationRequest
20- */
21- public function setVer ($ value )
22- {
23- return $ this ->setParameter ('ver ' , $ value );
24- }
25-
26- /**
27- * @return string
28- */
29- public function getVer ()
30- {
31- return $ this ->getParameter ('ver ' );
32- }
33-
34- /**
35- * @param string $value
36- * @return AcceptNotificationRequest
37- */
38- public function setDat ($ value )
39- {
40- return $ this ->setParameter ('dat ' , $ value );
41- }
42-
43- /**
44- * @return string
45- */
46- public function getDat ()
47- {
48- return $ this ->getParameter ('dat ' );
49- }
50-
51- /**
52- * @param string $value
53- * @return AcceptNotificationRequest
54- */
55- public function setChk ($ value )
56- {
57- return $ this ->setParameter ('chk ' , $ value );
58- }
59-
60- /**
61- * @return string
62- */
63- public function getChk ()
64- {
65- return $ this ->getParameter ('chk ' );
66- }
67-
6817 /**
6918 * @return array
70- *
7119 * @throws Exception
7220 */
7321 public function getData ()
7422 {
75- $ input = http_build_query (['ver ' => $ this ->getVer (), 'dat ' => $ this ->getDat (), 'chk ' => $ this ->getChk ()]);
76- $ feedbackService = new FeedbackService ($ this ->getHashKey (), $ this ->getHashIv (), $ input );
23+ $ feedbackService = new FeedbackService (
24+ $ this ->getHashKey (),
25+ $ this ->getHashIv (),
26+ http_build_query ($ this ->httpRequest ->request ->all ())
27+ );
7728
7829 return $ this ->decode ($ feedbackService ->getRetrunJson ());
7930 }
@@ -90,9 +41,9 @@ public function sendData($data)
9041 /**
9142 * @return string
9243 */
93- public function getTransactionStatus ()
44+ public function getTransactionId ()
9445 {
95- return $ this ->getNotificationResponse ()->getTransactionStatus ();
46+ return $ this ->getNotificationResponse ()->getTransactionId ();
9647 }
9748
9849 /**
@@ -103,6 +54,14 @@ public function getTransactionReference()
10354 return $ this ->getNotificationResponse ()->getTransactionReference ();
10455 }
10556
57+ /**
58+ * @return string
59+ */
60+ public function getTransactionStatus ()
61+ {
62+ return $ this ->getNotificationResponse ()->getTransactionStatus ();
63+ }
64+
10665 /**
10766 * @return string
10867 */
0 commit comments