Skip to content

Commit

Permalink
Avoid UPE card loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Karimov committed Oct 13, 2022
1 parent 82d3f47 commit d6af1e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/payment-methods/class-upe-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,9 @@ private function get_enabled_payment_method_config() {
$enabled_payment_methods = $this->get_payment_method_ids_enabled_at_checkout();

foreach ( $enabled_payment_methods as $payment_method_id ) {
if ( 'card' === $payment_method_id ) {
continue;
}
$payment_method = $this->wc_payments_get_payment_method_by_id( $payment_method_id );
$settings[ $payment_method_id ] = [
'isReusable' => $payment_method->is_reusable(),
Expand Down

0 comments on commit d6af1e6

Please sign in to comment.