mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Set false if key does not exist in session
This commit is contained in:
parent
39e781a7f5
commit
9acb417f88
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ trait ProcessPaymentTrait {
|
|||
$this->format_exception( $error )
|
||||
);
|
||||
|
||||
if ( WC()->session->get( 'ppcp_delete_wc_order_on_payment_failure' ) ) {
|
||||
if ( WC()->session->get( 'ppcp_delete_wc_order_on_payment_failure' ) ?? false ) {
|
||||
$wc_order->delete( true );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue