Update class-wc-gateway-paypal-response.php

This commit is contained in:
Miguel Pinto 2019-08-01 16:19:17 +01:00 committed by GitHub
parent 77f4a3e25b
commit ae4eba45ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ abstract class WC_Gateway_Paypal_Response {
$order->payment_complete( $txn_id );
WC()->cart->empty_cart();
$order->update_meta_data( '_paypal_payment_completed', 'yes' );
$order->save();
}
}