File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
src/Gateways/Asaas/Resources/Pix Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 12
12
*/
13
13
$ phpay = new PHPay (new AsaasGateway (TOKEN_ASAAS_SANDBOX ));
14
14
15
- /**
16
- * create pix key
17
- *
18
- * @return string $pixKey
19
- */
20
15
$ phpay
21
16
->pix ()
22
17
->createKey ();
23
18
24
- /**
25
- * get all pix keys
26
- *
27
- * @return array $pixKeys
28
- */
19
+ $ phpay
20
+ ->pix ()
21
+ ->find (ID_PIX_KEY );
22
+
29
23
$ phpay
30
24
->pix ()
31
25
->getAll ();
Original file line number Diff line number Diff line change @@ -63,6 +63,17 @@ public function createKey(): array
63
63
]);
64
64
}
65
65
66
+ /**
67
+ * find pix key
68
+ *
69
+ * @param string $id
70
+ * @return array<mixed>
71
+ */
72
+ public function find (string $ id ): array
73
+ {
74
+ return $ this ->get ("pix/addressKeys/ {$ id }" );
75
+ }
76
+
66
77
/**
67
78
* get all pix keys
68
79
*
You can’t perform that action at this time.
0 commit comments