Skip to content

Commit 1e0c70b

Browse files
PHPAY-33: refactor: remove destroy function on efi library
1 parent 95cebea commit 1e0c70b

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

examples/efi/charges.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@
6262
->charge()
6363
->confirmReceipt($chargeId);
6464

65-
/**
66-
* destroy charge
67-
*/
68-
$phpay
69-
->charge()
70-
->destroy($chargeId);
71-
7265
/**
7366
* cancel charge
7467
*/

src/Gateways/Efi/Resources/Charge/Charge.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,6 @@ public function update(string $id, array $data): array
143143
return $this->put("payments/{$id}", $data);
144144
}
145145

146-
/**
147-
* destroy charge
148-
*
149-
* @param string $id
150-
* @return array<array|mixed>
151-
*/
152-
public function destroy(string $id): array
153-
{
154-
return $this->put("v1/charge/{$id}/cancel", []);
155-
}
156-
157146
/**
158147
* cancel charge
159148
*

src/Gateways/Efi/Resources/Charge/Interface/ChargeInterface.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ public function setQueryParams(array $queryParams): ChargeInterface;
4343
*/
4444
public function confirmReceipt(string $id): array;
4545

46-
/**
47-
* delete charge by id
48-
*
49-
* @param string $id
50-
* @return array<array|mixed>
51-
*/
52-
public function destroy(string $id): array;
53-
5446
/**
5547
* cancel charge by id
5648
*

0 commit comments

Comments
 (0)