diff --git a/src/Api/PaymentConfiguration/StripeCheckoutSessionPaymentConfigProvider.php b/src/Api/PaymentConfiguration/StripeCheckoutSessionPaymentConfigProvider.php index de6d623..3431a67 100644 --- a/src/Api/PaymentConfiguration/StripeCheckoutSessionPaymentConfigProvider.php +++ b/src/Api/PaymentConfiguration/StripeCheckoutSessionPaymentConfigProvider.php @@ -4,9 +4,7 @@ namespace FluxSE\SyliusPayumStripePlugin\Api\PaymentConfiguration; -use FluxSE\PayumStripe\Token\TokenHashKeysInterface; use FluxSE\SyliusPayumStripePlugin\Api\Payum\CaptureProcessorInterface; -use Payum\Core\Payum; use Stripe\Checkout\Session; use Sylius\Bundle\ApiBundle\Payment\PaymentConfigurationProviderInterface; use Sylius\Component\Core\Model\PaymentInterface; @@ -16,6 +14,7 @@ final class StripeCheckoutSessionPaymentConfigProvider implements PaymentConfigu use StripePaymentConfigProviderTrait { StripePaymentConfigProviderTrait::__construct as private __stripePaymentConfigProviderConstruct; } + private CaptureProcessorInterface $captureProcessor; public function __construct( diff --git a/src/Api/PaymentConfiguration/StripeJsPaymentConfigProvider.php b/src/Api/PaymentConfiguration/StripeJsPaymentConfigProvider.php index d76938e..d6cf3f9 100644 --- a/src/Api/PaymentConfiguration/StripeJsPaymentConfigProvider.php +++ b/src/Api/PaymentConfiguration/StripeJsPaymentConfigProvider.php @@ -14,6 +14,7 @@ final class StripeJsPaymentConfigProvider implements PaymentConfigurationProvide use StripePaymentConfigProviderTrait { StripePaymentConfigProviderTrait::__construct as private __stripePaymentConfigProviderConstruct; } + private CaptureProcessorInterface $captureProcessor; public function __construct( diff --git a/src/Api/Payum/AfterUrlProvider.php b/src/Api/Payum/AfterUrlProvider.php index b3c38a5..7e20925 100644 --- a/src/Api/Payum/AfterUrlProvider.php +++ b/src/Api/Payum/AfterUrlProvider.php @@ -9,6 +9,7 @@ final class AfterUrlProvider implements AfterUrlProviderInterface { private string $afterPath; + private array $afterParameters; public function __construct( diff --git a/src/Api/Payum/AfterUrlProviderInterface.php b/src/Api/Payum/AfterUrlProviderInterface.php index af16b4e..65f468b 100644 --- a/src/Api/Payum/AfterUrlProviderInterface.php +++ b/src/Api/Payum/AfterUrlProviderInterface.php @@ -9,5 +9,6 @@ interface AfterUrlProviderInterface { public function getAfterPath(PaymentInterface $payment): string; + public function getAfterParameters(PaymentInterface $payment): array; } diff --git a/src/Api/Payum/CaptureProcessor.php b/src/Api/Payum/CaptureProcessor.php index db31fd5..a0ff84a 100644 --- a/src/Api/Payum/CaptureProcessor.php +++ b/src/Api/Payum/CaptureProcessor.php @@ -15,7 +15,9 @@ final class CaptureProcessor implements CaptureProcessorInterface { private Payum $payum; + private CaptureRequestFactoryInterface $captureRequestFactory; + private AfterUrlProviderInterface $afterUrlProvider; public function __construct( @@ -27,6 +29,7 @@ public function __construct( $this->captureRequestFactory = $captureRequestFactory; $this->afterUrlProvider = $afterUrlProvider; } + public function __invoke(PaymentInterface $payment): array { $tokenFactory = $this->payum->getTokenFactory(); diff --git a/src/Form/Type/StripeCheckoutSessionGatewayConfigurationType.php b/src/Form/Type/StripeCheckoutSessionGatewayConfigurationType.php index c65ff58..3ae09e6 100644 --- a/src/Form/Type/StripeCheckoutSessionGatewayConfigurationType.php +++ b/src/Form/Type/StripeCheckoutSessionGatewayConfigurationType.php @@ -13,13 +13,13 @@ class StripeCheckoutSessionGatewayConfigurationType extends AbstractType { public function __construct() { - trigger_error( + @trigger_error( sprintf( '"%s" class has been deprecated please use "%s" instead.', __CLASS__, StripeGatewayConfigurationType::class ), - E_USER_DEPRECATED + \E_USER_DEPRECATED ); } diff --git a/src/Provider/StripeJs/DetailsProvider.php b/src/Provider/StripeJs/DetailsProvider.php index 9dda593..d337246 100644 --- a/src/Provider/StripeJs/DetailsProvider.php +++ b/src/Provider/StripeJs/DetailsProvider.php @@ -9,7 +9,9 @@ final class DetailsProvider implements DetailsProviderInterface { private AmountProviderInterface $amountProvider; + private CurrencyProviderInterface $currencyProvider; + private PaymentMethodTypesProviderInterface $paymentMethodTypesProvider; public function __construct(