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

@ -31,7 +31,7 @@ return array(
},
'vaulting.credit-card-handler' => function( ContainerInterface $container ): VaultedCreditCardHandler {
return new VaultedCreditCardHandler(
$container->get( 'subscription.helper' ),
$container->get( 'wc-subscriptions.helper' ),
$container->get( 'vaulting.repository.payment-token' ),
$container->get( 'api.factory.purchase-unit' ),
$container->get( 'api.factory.payer' ),

View file

@ -51,7 +51,7 @@ class VaultingModule implements ModuleInterface {
$listener->listen();
$subscription_helper = $container->get( 'subscription.helper' );
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
add_action(
'woocommerce_created_customer',
function( int $customer_id ) use ( $subscription_helper ) {