File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class Asaas {
32
32
public $ Conta ;
33
33
public $ Finance ;
34
34
public $ SubContas ;
35
+ public $ Checkout ;
35
36
36
37
private $ connection ;
37
38
@@ -58,6 +59,7 @@ public function __construct($token, $status = false) {
58
59
$ this ->Conta = new Conta ($ this ->connection );
59
60
$ this ->Finance = new Finance ($ this ->connection );
60
61
$ this ->SubContas = new SubContas ($ this ->connection );
62
+ $ this ->Checkout = new Checkout ($ this ->connection );
61
63
}
62
64
63
65
public function Assinatura (){
@@ -150,4 +152,8 @@ public function Webhook(){
150
152
return $ this ->webhook ;
151
153
}
152
154
155
+ public function Checkout (){
156
+ $ this ->Checkout = new Checkout ($ this ->connection );
157
+ return $ this ->Checkout ;
158
+ }
153
159
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace CodePhix \Asaas ;
4
+
5
+
6
+ class Checkout {
7
+
8
+ public $ http ;
9
+
10
+ public function __construct (Connection $ connection )
11
+ {
12
+ $ this ->http = $ connection ;
13
+ }
14
+
15
+
16
+ public function create (array $ dados ){
17
+ return $ this ->http ->post ('/checkouts/ ' , $ dados );
18
+ }
19
+
20
+ public function cancel (string $ id ){
21
+ return $ this ->http ->post ('/checkouts/ ' .$ id .'/cancel ' ,[]);
22
+ }
23
+
24
+ }
You can’t perform that action at this time.
0 commit comments