Commit b97448ae authored by Vadym Abramchuk's avatar Vadym Abramchuk
Browse files

Issue #3270758 by abramm: Rename variables to better reflect what they are doing

parent 04e35b26
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -520,14 +520,15 @@ class Omise extends OnsitePaymentGatewayBase implements OmiseInterface {
      }
    }
    else {
      $card_token = \OmiseToken::retrieve(
      $existingCard = \OmiseToken::retrieve(
        $payment_details['omise_token'],
        $this->configuration['public_key'],
        $this->configuration['secret_key']
      );
      $card = $card_token['card'];
      $card['id'] = $payment_details['omise_token'];
      return $card;
      $cardByToken = $existingCard['card'];
      // TODO: Pass token instead of card ID?
      $cardByToken['id'] = $payment_details['omise_token'];
      return $cardByToken;
    }

    return [];