Ensure payment token exist for customer

This commit is contained in:
Emili Castells Guasch 2024-03-15 15:53:29 +01:00
parent c3f8076b92
commit c058cd38c8
3 changed files with 62 additions and 3 deletions

View file

@ -44,7 +44,8 @@ return array(
$authorized_payments_processor,
$funding_source_renderer,
$container->get( 'wc-subscriptions.helpers.real-time-account-updater' ),
$container->get( 'wc-subscriptions.helper' )
$container->get( 'wc-subscriptions.helper' ),
$container->get( 'api.endpoint.payment-tokens' )
);
},
'wc-subscriptions.repository.payment-token' => static function ( ContainerInterface $container ): PaymentTokenRepository {