# sequra/4.3.0/src/Services/Payment/interface-payment-method-service.php

seQura, version 4.3.0. 61 lines.

- Page: https://pluginprobe.com/plugins/sequra/4.3.0/code/src/Services/Payment/interface-payment-method-service.php
- Raw: https://pluginprobe.com/plugins/sequra/4.3.0/raw/src/Services/Payment/interface-payment-method-service.php
- Modified: 2026-04-28T13:26:48+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/sequra/4.3.0/code/src/Services/Payment/interface-payment-method-service.php#L10-L20`.

```php
<?php
/**
 * Payment method service interface
 *
 * @package    SeQura/WC
 * @subpackage SeQura/WC/Services
 */

namespace SeQura\WC\Services\Payment;

use SeQura\Core\BusinessLogic\Domain\Order\Models\SeQuraForm;
use SeQura\WC\Dto\Payment_Method_Data;
use SeQura\WC\Dto\Payment_Method_Option;
use WC_Order;

/**
 * Handle use cases related to payment methods
 */
interface Interface_Payment_Method_Service {

	/**
	 * Get identification form
	 */
	public function get_identification_form( WC_Order $order ): ?SeQuraForm;

	/**
	 * Get payment methods
	 * 
	 * @return Payment_Method_Option[]
	 */
	public function get_payment_methods( ?WC_Order $order = null );

	/**
	 * Check if the payment method data matches a valid payment method.
	 */
	public function is_payment_method_data_valid( ?Payment_Method_Data $data ): bool;

	/**
	 * Check if the current page is the order pay page
	 */
	public function is_order_pay_page(): bool;

	/**
	 * Check if the current page is the checkout page
	 */
	public function is_checkout(): bool;

	/**
	 * Check if payment method selection is delegated to the seQura checkout form.
	 *
	 * When truthy, the seQura form URL will include `product=tbs` and shoppers are
	 * redirected to the seQura-hosted selection form instead of selecting on the
	 * merchant's checkout page.
	 *
	 * Controlled by the `sequra_delegate_payment_method_selection` WordPress filter:
	 *   add_filter( 'sequra_delegate_payment_method_selection', '__return_true' );
	 * The filter receives `(bool $enabled, ?\WC_Order $order)`.
	 */
	public function is_delegated_payment_selection( ?WC_Order $order = null ): bool;
}

```
