# easy-invoice/2.1.2/includes/Interfaces/PaymentGatewayInterface.php

Easy Invoice – Invoice Generator, PDF Quotes &amp; Payments, version 2.1.2. 47 lines.

- Page: https://pluginprobe.com/plugins/easy-invoice/2.1.2/code/includes/Interfaces/PaymentGatewayInterface.php
- Raw: https://pluginprobe.com/plugins/easy-invoice/2.1.2/raw/includes/Interfaces/PaymentGatewayInterface.php
- Modified: 2025-08-14T09:51:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-invoice/2.1.2/code/includes/Interfaces/PaymentGatewayInterface.php#L10-L20`.

```php
<?php
namespace EasyInvoice\Interfaces;

interface PaymentGatewayInterface {
    /**
     * Initialize the payment gateway
     */
    public function init(): void;

    /**
     * Process the payment
     * 
     * @param float $amount Payment amount
     * @param array $data Additional payment data
     * @return array Payment response
     */
    public function processPayment(float $amount, array $data = []): array;

    /**
     * Handle payment callback/webhook
     * 
     * @param array $data Callback data
     * @return array Response data
     */
    public function handleCallback(array $data): array;

    /**
     * Get payment gateway settings
     * 
     * @return array Gateway settings
     */
    public function getSettings(): array;

    /**
     * Get payment gateway name
     * 
     * @return string Gateway name
     */
    public function getName(): string;

    /**
     * Check if payment gateway is enabled
     * 
     * @return bool
     */
    public function isEnabled(): bool;
} 
```
