diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php index 933e6ce51..0cd9c2eed 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php @@ -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 ); }