def validate_client_id(payment_transaction, response)
      payment_id  = payment_transaction.payment.client_id
      response_id = response.payment_client_id

      if response_id && payment_id.to_s != response_id.to_s   # Different types with equal values must pass validation
        raise ValidationError, "Response client_id '#{response_id}' does not match Payment client_id '#{payment_id}'"
      end
    end
def validate_client_id(payment_transaction, response)
      payment_id  = payment_transaction.payment.client_id
      response_id = response.payment_client_id

      if response_id && payment_id.to_s != response_id.to_s   # Different types with equal values must pass validation
        raise ValidationError, "Response client_id '#{response_id}' does not match Payment client_id '#{payment_id}'"
      end
    end
Check, is payment transaction client order id and query response client order id equal or not.

 @param    payment_transaction   [PaymentTransaction]    Payment transaction for update
 @param    response              [Response]              API gateway response