use Shopware\Core\Framework\Validation\DataBag\RequestDataBag;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
/**
* @internal
*/
#[Package('checkout')]
class SyncTestFailedPaymentHandler implements SynchronousPaymentHandlerInterface
{ public function pay(SyncPaymentTransactionStruct
$transaction, RequestDataBag
$dataBag, SalesChannelContext
$salesChannelContext): void
{ throw PaymentException::
syncProcessInterrupted($transaction->
getOrderTransaction()->
getId(), 'This is a TestPaymentHandler which will always fail'
);
}}