@@ -52,36 +52,6 @@ public function validateSignature(Request $payload)
5252 return $ headerSignature === $ calculatedSignature ;
5353 }
5454
55- public function getSendReceipt (string $ receipt )
56- {
57- try {
58- $ request = $ this ->client ->get ("/send/ {$ receipt }" );
59-
60- $ payload = json_decode ($ request ->getBody ()->getContents ());
61-
62- return $ this ->processResponse ($ payload , $ request );
63- } catch (GuzzleException $ e ) {
64- throw new ServerErrorException ($ e ->getMessage ());
65- }
66- }
67-
68- public function processSendReceipt (string $ receipt , string $ event )
69- {
70- try {
71- $ request = $ this ->client ->post ("/send/ {$ receipt }" , [
72- "body " => json_encode ([
73- 'event ' => $ event ,
74- ])
75- ]);
76-
77- $ payload = json_decode ($ request ->getBody ()->getContents ());
78-
79- return $ this ->processResponse ($ payload , $ request );
80- } catch (GuzzleException $ e ) {
81- throw new ServerErrorException ($ e ->getMessage ());
82- }
83- }
84-
8555 public function indexUser (string $ name , string $ email , string $ identifier )
8656 {
8757 try {
@@ -162,10 +132,10 @@ public function chargeLink(string $link, int $amount, string $remark)
162132 }
163133 }
164134
165- public function authorizeDirectCharge (string $ reference , string $ event )
135+ public function authorizeCharge (string $ reference , string $ event )
166136 {
167137 try {
168- $ request = $ this ->client ->post ("/debit / {$ reference }" , [
138+ $ request = $ this ->client ->post ("/authorization / {$ reference }" , [
169139 "body " => json_encode ([
170140 'event ' => $ event ,
171141 ])
0 commit comments