Skip to content
Snippets Groups Projects
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
Branches
Tags
1 merge request!6Issue #3270758: 3D Secure support
......@@ -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 [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment