-
Support for Sylius 1.13 has been added, it is now the recommended Sylius version to use.
-
Support for PHP 8.0 has been dropped.
-
The following constructor signatures have been changed:
Sylius\PayPalPlugin\Client\PayPalClient
:use Psr\Http\Client\ClientInterface; use GuzzleHttp\ClientInterface as GuzzleClientInterface; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\StreamFactoryInterface; public function __construct( - private readonly GuzzleClientInterface $client, + private readonly GuzzleClientInterface|ClientInterface $client, private readonly LoggerInterface $logger, private readonly UuidProviderInterface $uuidProvider, private readonly PayPalConfigurationProviderInterface $payPalConfigurationProvider, private readonly ChannelContextInterface $channelContext, private readonly string $baseUrl, private int $requestTrialsLimit, private readonly bool $loggingLevelIncreased = false, + private readonly ?RequestFactoryInterface $requestFactory = null, + private readonly ?StreamFactoryInterface $streamFactory = null, )
Sylius\PayPalPlugin\Api\GeneralApi
:use Psr\Http\Client\ClientInterface; use GuzzleHttp\ClientInterface as GuzzleClientInterface; use Psr\Http\Message\RequestFactoryInterface; public function __construct( - private readonly GuzzleClientInterface $client, + private readonly GuzzleClientInterface|ClientInterface $client, + private readonly ?RequestFactoryInterface $requestFactory = null, )
Sylius\PayPalPlugin\Api\WebhookApi
:use Psr\Http\Client\ClientInterface; use GuzzleHttp\ClientInterface as GuzzleClientInterface; use Psr\Http\Message\RequestFactoryInterface; use Psr\Http\Message\StreamFactoryInterface; public function __construct( - private readonly GuzzleClientInterface $client, + private readonly GuzzleClientInterface|ClientInterface $client, private readonly string $baseUrl, + private readonly ?RequestFactoryInterface $requestFactory = null, + private readonly ?StreamFactoryInterface $streamFactory = null, )
Sylius\PayPalPlugin\Onboarding\Processor\BasicOnboardingProcessor
:use Psr\Http\Client\ClientInterface; use GuzzleHttp\ClientInterface as GuzzleClientInterface; use Psr\Http\Message\RequestFactoryInterface; public function __construct( - private readonly GuzzleClientInterface $client, + private readonly GuzzleClientInterface|ClientInterface $client, private readonly SellerWebhookRegistrarInterface $sellerWebhookRegistrar, private readonly string $url, + private readonly ?RequestFactoryInterface $requestFactory = null, )
-
Added doctrine migration for PostgreSQL. For more information, please refer to the Sylius 1.13 UPGRADE.md
sylius_paypal_plugin_pay_with_paypal_form
route now operates on both payment ID and order token. URl then changed from/pay-with-paypal/{id}
to/pay-with-paypal/{orderToken}/{paymentId}
. If you use this route anywhere in your application, you need to change the URL attributes
sylius_paypal_plugin_pay_with_paypal_form
route now operates on both payment ID and order token. URl then changed from/pay-with-paypal/{id}
to/pay-with-paypal/{orderToken}/{paymentId}
. If you use this route anywhere in your application, you need to change the URL attributes
-
Upgrade your application to Sylius 1.8.
-
Remove previously copied migration files (You may check migrations to remove here).