PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.3.2
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.3.2
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
easy-invoice / includes / Interfaces / PaymentGatewayInterface.php

PaymentGatewayInterface.php in Easy Invoice – Invoice Generator, PDF Quotes & Payments 2.3.2, at includes/Interfaces/PaymentGatewayInterface.php

47 lines 1020 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace EasyInvoice\Interfaces;
3
4 interface PaymentGatewayInterface {
5 /**
6 * Initialize the payment gateway
7 */
8 public function init(): void;
9
10 /**
11 * Process the payment
12 *
13 * @param float $amount Payment amount
14 * @param array $data Additional payment data
15 * @return array Payment response
16 */
17 public function processPayment(float $amount, array $data = []): array;
18
19 /**
20 * Handle payment callback/webhook
21 *
22 * @param array $data Callback data
23 * @return array Response data
24 */
25 public function handleCallback(array $data): array;
26
27 /**
28 * Get payment gateway settings
29 *
30 * @return array Gateway settings
31 */
32 public function getSettings(): array;
33
34 /**
35 * Get payment gateway name
36 *
37 * @return string Gateway name
38 */
39 public function getName(): string;
40
41 /**
42 * Check if payment gateway is enabled
43 *
44 * @return bool
45 */
46 public function isEnabled(): bool;
47 }