/**
  * Get payment token by gateway token.
  *
  * @param string $token The gateway token.
  * @param string $paymentMethodCode
  * @param int $customerId Customer ID.
  * @return PaymentTokenInterface|null Payment token interface.
  */
 public function getByGatewayToken($token, $paymentMethodCode, $customerId)
 {
     $tokenData = $this->paymentTokenResourceModel->getByGatewayToken($token, $paymentMethodCode, $customerId);
     $tokenModel = !empty($tokenData) ? $this->paymentTokenFactory->create(['data' => $tokenData]) : null;
     return $tokenModel;
 }