Skip to content

Commit

Permalink
All payment methods are inactive by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Aug 30, 2023
1 parent 2545682 commit d15c1cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ private function maybe_enrich_payment_methods() {
\set_transient( $cache_key, $mollie_payment_methods, \DAY_IN_SECONDS );
}

// All payment methods are inactive by default.
foreach ( $this->payment_methods as $payment_method ) {
$payment_method->set_status( 'inactive' );
}

$method_transformer = new MethodTransformer();

foreach ( $mollie_payment_methods->_embedded->methods as $mollie_payment_method ) {
Expand Down

0 comments on commit d15c1cc

Please sign in to comment.