Skip to content

Commit

Permalink
refactor: rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot committed Aug 19, 2024
1 parent cb64b41 commit ac42a86
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,10 @@ private function getTotalAmountFromOrder(WC_Order $order): int
private function validatePayerMatchesCardInscription(WC_Payment_Token_Oneclick $paymentToken): bool
{
$currentUser = wp_get_current_user();
$userEmail = $currentUser->id;
$inscriptionEmail = $paymentToken->get_userId();
$userId = $currentUser->id;
$inscriptionId = $paymentToken->get_userId();

return $userEmail == $inscriptionEmail;
return $userId == $inscriptionId;
}

public function getOneclickPaymentTokenClass()
Expand Down

0 comments on commit ac42a86

Please sign in to comment.