mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Move PayPal subscriptions api logic to its own module
This commit is contained in:
parent
b3c66f4cbb
commit
94674adc25
29 changed files with 707 additions and 604 deletions
|
@ -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' ),
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue