Merge pull request #9849 from maxrice/fix-checkout-result-notice
Fix checkout result notice
This commit is contained in:
commit
32ffd8059a
|
@ -643,7 +643,7 @@ class WC_Checkout {
|
||||||
$result = $available_gateways[ $this->posted['payment_method'] ]->process_payment( $order_id );
|
$result = $available_gateways[ $this->posted['payment_method'] ]->process_payment( $order_id );
|
||||||
|
|
||||||
// Redirect to success/confirmation/payment page
|
// Redirect to success/confirmation/payment page
|
||||||
if ( 'success' === $result['result'] ) {
|
if ( isset( $result['result'] ) && 'success' === $result['result'] ) {
|
||||||
|
|
||||||
$result = apply_filters( 'woocommerce_payment_successful_result', $result, $order_id );
|
$result = apply_filters( 'woocommerce_payment_successful_result', $result, $order_id );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue