Skip to content

Commit

Permalink
Revert can_refund_order change so that gateway refund button always s…
Browse files Browse the repository at this point in the history
…hows
  • Loading branch information
dechov committed Jun 18, 2021
1 parent df9ec00 commit c990025
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,7 @@ protected function get_payment_token( $order ) {
* @return bool
*/
public function can_refund_order( $order ) {
return $order
&& $order->get_meta( '_charge_id', true )
&& ! $this->has_refund_failed( $order );
return $order && $order->get_meta( '_charge_id', true );
}

/**
Expand Down

0 comments on commit c990025

Please sign in to comment.