Add improvements based on PR feedback

This commit is contained in:
Emili Castells Guasch 2023-09-21 11:24:50 +02:00
parent 1523ee4dfb
commit 09ac019bd0
5 changed files with 5 additions and 5 deletions

View file

@ -41,7 +41,7 @@ class SavedPaymentCheckerModule implements ModuleInterface {
* Set authorize intent for vaulted subscriptions, so we can void if payment not saved.
*/
add_filter(
'woocommerce_paypal_payments_saved_payment_subscription_intent',
'woocommerce_paypal_payments_order_intent',
function( string $intent ) use ( $c ) {
$subscription_helper = $c->get( 'subscription.helper' );
assert( $subscription_helper instanceof SubscriptionHelper );