File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed
Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 5454
55551 . The definition of ` Http\Discovery\Psr18Client ` has been removed, use ` sylius.http_client ` service instead.
5656
57+ 1 . The command ` sylius:pay-pal-plugin:complete-payments ` has been changed to ` sylius-paypal:complete-payments ` .
58+
57591 . Aliases introduced in PayPalPlugin 1.7 have now become the primary service IDs in PayPalPlugin 2.0.
5860 The old service IDs have been removed, and all references must be updated accordingly:
5961
Original file line number Diff line number Diff line change 266266 <argument type =" service" id =" sylius_paypal.api.cache_authorize_client" />
267267 <argument type =" service" id =" sylius_paypal.api.order_details" />
268268 <argument type =" service" id =" sylius_abstraction.state_machine" />
269- <tag name =" console.command" command = " sylius:pay-pal-plugin:complete-payments " />
269+ <tag name =" console.command" />
270270 </service >
271271
272272 <service
Original file line number Diff line number Diff line change 11## Processing payments
22
3- Plugin provides ` sylius:pay-pal-plugin :complete-payments ` command, that should be configured as cron job on the server.
3+ Plugin provides ` sylius-paypal :complete-payments ` command, that should be configured as cron job on the server.
44It iterates over processing PayPal payments and completes them if the order is completed in PayPal.
55
66---
Original file line number Diff line number Diff line change 2424use Sylius \PayPalPlugin \Api \OrderDetailsApiInterface ;
2525use Sylius \PayPalPlugin \DependencyInjection \SyliusPayPalExtension ;
2626use Sylius \PayPalPlugin \Payum \Action \StatusAction ;
27+ use Symfony \Component \Console \Attribute \AsCommand ;
2728use Symfony \Component \Console \Command \Command ;
2829use Symfony \Component \Console \Input \InputInterface ;
2930use Symfony \Component \Console \Output \OutputInterface ;
3031
32+ #[AsCommand(
33+ name: 'sylius-paypal:complete-payments ' ,
34+ description: 'Completes payments for completed PayPal orders ' ,
35+ )]
3136final class CompletePaidPaymentsCommand extends Command
3237{
3338 public function __construct (
@@ -40,14 +45,6 @@ public function __construct(
4045 parent ::__construct ();
4146 }
4247
43- protected function configure (): void
44- {
45- $ this
46- ->setName ('sylius:pay-pal-plugin:complete-payments ' )
47- ->setDescription ('Completes payments for completed PayPal orders ' )
48- ;
49- }
50-
5148 protected function execute (InputInterface $ input , OutputInterface $ output ): int
5249 {
5350 $ payments = $ this ->paymentRepository ->findBy (['state ' => PaymentInterface::STATE_PROCESSING ]);
You can’t perform that action at this time.
0 commit comments