Clear PayPal subscription id from session when payment is complete

This commit is contained in:
Emili Castells Guasch 2023-09-15 13:13:13 +02:00
parent d3a02e79c5
commit ac22a25f4f

View file

@ -543,6 +543,8 @@ class PayPalGateway extends \WC_Payment_Gateway {
}
$wc_order->payment_complete();
WC()->session->set( 'ppcp_subscription_id', '' );
return $this->handle_payment_success( $wc_order );
}