Skip to content

Commit cc592d5

Browse files
committed
fixed to be compatible with sw 6.7
1 parent 91431b1 commit cc592d5

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

src/Components/InstallmentCalculator/Struct/InstallmentCalculationResponse.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515

1616
class InstallmentCalculationResponse extends StoreApiResponse
1717
{
18-
/**
19-
* @var ArrayStruct
20-
*/
21-
protected $object;
22-
2318
/**
2419
* @param array{translations: array, plan: array} $data
2520
*/

src/Components/PaymentHandler/LegacyPaymentHandler.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@
1212

1313
use RuntimeException;
1414
use Shopware\Core\Checkout\Payment\Cart\PaymentHandler\DefaultPayment;
15-
use Shopware\Core\Checkout\Payment\Cart\SyncPaymentTransactionStruct;
16-
use Shopware\Core\Framework\Validation\DataBag\RequestDataBag;
17-
use Shopware\Core\System\SalesChannel\SalesChannelContext;
15+
use Shopware\Core\Checkout\Payment\Cart\PaymentTransactionStruct;
16+
use Shopware\Core\Framework\Context;
17+
use Shopware\Core\Framework\Struct\Struct;
18+
use Symfony\Component\HttpFoundation\RedirectResponse;
19+
use Symfony\Component\HttpFoundation\Request;
1820

1921
/**
2022
* @deprecated
2123
* @internal
2224
*/
2325
class LegacyPaymentHandler extends DefaultPayment
2426
{
25-
public function pay(SyncPaymentTransactionStruct $transaction, RequestDataBag $dataBag, SalesChannelContext $salesChannelContext): void
27+
public function pay(Request $request, PaymentTransactionStruct $transaction, Context $context, ?Struct $validateStruct): ?RedirectResponse
2628
{
2729
throw new RuntimeException('payment method does not exist anymore.');
2830
}

0 commit comments

Comments
 (0)