mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Clear PayPal subscription id from session when payment is complete
This commit is contained in:
parent
d3a02e79c5
commit
ac22a25f4f
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue