<?php
defined( 'ABSPATH' ) || exit;

interface WCP_Payment_Gateway_Interface {

	public function get_id(): string;

	public function get_label(): string;

	public function is_enabled(): bool;

	public function is_configured(): bool;

	/**
	 * Create a hosted payment link/URL for the given order and amount.
	 *
	 * @param WC_Order $order
	 * @param float    $amount     Amount in INR.
	 * @param string   $return_url URL the gateway should redirect the customer to after payment.
	 * @return string|WP_Error Payment URL on success, WP_Error on failure.
	 */
	public function create_payment( WC_Order $order, float $amount, string $return_url ): string|WP_Error;
}
