Move PayPal subscriptions api logic to its own module

This commit is contained in:
Emili Castells Guasch 2023-10-18 17:03:15 +02:00
parent b3c66f4cbb
commit 94674adc25
29 changed files with 707 additions and 604 deletions

View file

@ -204,7 +204,7 @@ return array(
$intent = $settings->has( 'intent' ) && strtoupper( (string) $settings->get( 'intent' ) ) === 'AUTHORIZE' ? 'AUTHORIZE' : 'CAPTURE';
$application_context_repository = $container->get( 'api.repository.application-context' );
$subscription_helper = $container->get( 'subscription.helper' );
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
return new OrderEndpoint(
$container->get( 'api.host' ),
$container->get( 'api.bearer' ),