Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

Payment PaymentMethod Criterion

The PaymentMethod Search Criterion searches for payments based on a payment method applied to them.

Arguments

  • method_id - integer that represents an ID of the payment method that you want to match

Example

PHP

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
use Ibexa\Contracts\Payment\Payment\PaymentQuery;
use Ibexa\Contracts\Payment\Payment\Query\Criterion\PaymentMethod;
use Ibexa\Contracts\Payment\PaymentMethodServiceInterface;

/** @var PaymentMethodServiceInterface $paymentMethodService */
$paymentMethod = $paymentMethodService->getPaymentMethod(2);

$query = new PaymentQuery(
    new PaymentMethod($paymentMethod)
);