Skip to content

Commit

Permalink
add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
timur27 committed Jun 21, 2024
1 parent c99fd15 commit bd57bc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/fix-token-retrieval-per-payment-method
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Retrieve saved tokens only relevant for the specific payment gateway.
2 changes: 1 addition & 1 deletion includes/class-wc-payments-token-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private function get_gateway_specific_retrievable_payment_methods( $gateway_id )

foreach ( self::REUSABLE_GATEWAYS_BY_PAYMENT_METHOD as $payment_method => $gateway ) {
if ( $gateway === $gateway_id ) {
if ( Payment_Method::LINK ) {
if ( Payment_Method::LINK === $payment_method ) {
if ( $this->is_payment_method_enabled( Payment_Method::LINK ) ) {
$methods[] = Payment_Method::LINK;
}
Expand Down

0 comments on commit bd57bc7

Please sign in to comment.