@@ -23,24 +23,52 @@ class Transaction extends ApiResource
2323 use ApiOperations \Retrieve;
2424
2525
26+ /**
27+ * @param $trans_id
28+ * @param $order_id
29+ * @param Factory $factory
30+ * @param null $opts
31+ * @return array|Transaction
32+ */
2633 public static function pay ($ trans_id , $ order_id , Factory $ factory , $ opts = null )
2734 {
2835 $ params = $ factory ->apiOperation (ApiOp::PAY )->get ();
2936 return static ::update ($ order_id , $ params , $ opts , $ trans_id );
3037 }
3138
39+ /**
40+ * @param $trans_id
41+ * @param $order_id
42+ * @param Factory $factory
43+ * @param null $opts
44+ * @return array|Transaction
45+ */
3246 public static function void ($ trans_id , $ order_id , Factory $ factory , $ opts = null )
3347 {
3448 $ params = $ factory ->apiOperation (ApiOp::VOID )->get ();
3549 return static ::update ($ order_id , $ params , $ opts , $ trans_id );
3650 }
3751
52+ /**
53+ * @param $trans_id
54+ * @param $order_id
55+ * @param Factory $factory
56+ * @param null $opts
57+ * @return array|Transaction
58+ */
3859 public static function refund ($ trans_id , $ order_id , Factory $ factory , $ opts = null )
3960 {
4061 $ params = $ factory ->apiOperation (ApiOp::REFUND )->get ();
4162 return static ::update ($ order_id , $ params , $ opts , $ trans_id );
4263 }
4364
65+ /**
66+ * @param $trans_id
67+ * @param $order_id
68+ * @param Factory $factory
69+ * @param null $opts
70+ * @return array|Transaction
71+ */
4472 public static function verify ($ trans_id , $ order_id , Factory $ factory , $ opts = null )
4573 {
4674 $ params = $ factory ->apiOperation (ApiOp::VERIFY )->get ();
0 commit comments